mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
fix panic
This commit is contained in:
parent
5cf0d7c783
commit
7e788b3b34
@ -38,8 +38,6 @@ func buildInbound(option *conf.Options, nodeInfo *panel.NodeInfo, tag string) (*
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// Set network protocol
|
// Set network protocol
|
||||||
t := coreConf.TransportProtocol(network)
|
|
||||||
in.StreamSetting = &coreConf.StreamConfig{Network: &t}
|
|
||||||
// Set server port
|
// Set server port
|
||||||
in.PortList = &coreConf.PortList{
|
in.PortList = &coreConf.PortList{
|
||||||
Range: []coreConf.PortRange{
|
Range: []coreConf.PortRange{
|
||||||
@ -170,6 +168,9 @@ func buildV2ray(config *conf.Options, nodeInfo *panel.NodeInfo, inbound *coreCon
|
|||||||
if len(v.NetworkSettings) == 0 {
|
if len(v.NetworkSettings) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t := coreConf.TransportProtocol(nodeInfo.VAllss.Network)
|
||||||
|
inbound.StreamSetting = &coreConf.StreamConfig{Network: &t}
|
||||||
switch v.Network {
|
switch v.Network {
|
||||||
case "tcp":
|
case "tcp":
|
||||||
err := json.Unmarshal(v.NetworkSettings, &inbound.StreamSetting.TCPSettings)
|
err := json.Unmarshal(v.NetworkSettings, &inbound.StreamSetting.TCPSettings)
|
||||||
|
Loading…
Reference in New Issue
Block a user