mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-02 06:48:14 -05:00
change error message
This commit is contained in:
parent
5c7356a8da
commit
31446726a4
@ -2,7 +2,6 @@ package controller_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/xtls/xray-core/proxy/shadowsocks_2022"
|
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"runtime"
|
"runtime"
|
||||||
@ -61,7 +60,7 @@ func TestController(t *testing.T) {
|
|||||||
NodeID: 41,
|
NodeID: 41,
|
||||||
NodeType: "V2ray",
|
NodeType: "V2ray",
|
||||||
}
|
}
|
||||||
apiclient := v2board.New(apiConfig)
|
apiclient := api.New(apiConfig)
|
||||||
c := New(server, apiclient, controlerconfig)
|
c := New(server, apiclient, controlerconfig)
|
||||||
fmt.Println("Sleep 1s")
|
fmt.Println("Sleep 1s")
|
||||||
err = c.Start()
|
err = c.Start()
|
||||||
@ -76,6 +75,4 @@ func TestController(t *testing.T) {
|
|||||||
signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM)
|
signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM)
|
||||||
<-osSignals
|
<-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)
|
t := conf.TransportProtocol(nodeInfo.SS.TransportProtocol)
|
||||||
nodeInfo.V2ray.Inbounds[0].StreamSetting = &conf.StreamConfig{Network: &t}
|
nodeInfo.V2ray.Inbounds[0].StreamSetting = &conf.StreamConfig{Network: &t}
|
||||||
} else {
|
} 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" {
|
} /*else if nodeInfo.NodeType == "dokodemo-door" {
|
||||||
nodeInfo.V2ray = &api.V2rayConfig{}
|
nodeInfo.V2ray = &api.V2rayConfig{}
|
||||||
nodeInfo.V2ray.Inbounds = make([]conf.InboundDetourConfig, 1)
|
nodeInfo.V2ray.Inbounds = make([]conf.InboundDetourConfig, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user