change error message

This commit is contained in:
yuzuki999 2022-06-06 17:22:45 +08:00
parent 5c7356a8da
commit 31446726a4
2 changed files with 2 additions and 5 deletions

View File

@ -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
}

View File

@ -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)