mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
change error message
This commit is contained in:
parent
5c7356a8da
commit
31446726a4
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user