diff --git a/service/controller/controller_test.go b/service/controller/controller_test.go index 0eb6029..c4853c3 100644 --- a/service/controller/controller_test.go +++ b/service/controller/controller_test.go @@ -2,7 +2,6 @@ package controller_test import ( "fmt" - "github.com/xtls/xray-core/proxy/shadowsocks_2022" "os" "os/signal" "runtime" @@ -61,7 +60,7 @@ func TestController(t *testing.T) { NodeID: 41, NodeType: "V2ray", } - apiclient := v2board.New(apiConfig) + apiclient := api.New(apiConfig) c := New(server, apiclient, controlerconfig) fmt.Println("Sleep 1s") err = c.Start() @@ -76,6 +75,4 @@ func TestController(t *testing.T) { signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM) <-osSignals } - test := shadowsocks_2022.MultiUserServerConfig{} - test.Network } diff --git a/service/controller/inboundbuilder.go b/service/controller/inboundbuilder.go index 15c0b8a..4f6b21a 100644 --- a/service/controller/inboundbuilder.go +++ b/service/controller/inboundbuilder.go @@ -94,7 +94,7 @@ func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.I t := conf.TransportProtocol(nodeInfo.SS.TransportProtocol) nodeInfo.V2ray.Inbounds[0].StreamSetting = &conf.StreamConfig{Network: &t} } else { - return nil, fmt.Errorf("unsupported node type: %s, Only support: V2ray, Trojan, Shadowsocks, and Shadowsocks-Plugin", nodeInfo.NodeType) + return nil, fmt.Errorf("unsupported node type: %s, Only support: V2ray, Trojan, Shadowsocks", nodeInfo.NodeType) } /*else if nodeInfo.NodeType == "dokodemo-door" { nodeInfo.V2ray = &api.V2rayConfig{} nodeInfo.V2ray.Inbounds = make([]conf.InboundDetourConfig, 1)