feat(api): implement sorting functionality for nodes and servers
This commit is contained in:
@@ -102,6 +102,7 @@ func (adapter *Adapter) Proxies(servers []*node.Node) ([]Proxy, error) {
|
||||
for _, protocol := range protocols {
|
||||
if protocol.Type == item.Protocol {
|
||||
proxies = append(proxies, Proxy{
|
||||
Sort: item.Sort,
|
||||
Name: item.Name,
|
||||
Server: item.Address,
|
||||
Port: item.Port,
|
||||
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
)
|
||||
|
||||
type Proxy struct {
|
||||
Sort int
|
||||
Name string
|
||||
Server string
|
||||
Port uint16
|
||||
|
||||
Reference in New Issue
Block a user