配置对象都加上了取地址符 &
This commit is contained in:
@@ -274,14 +274,14 @@ func (s *Service) setupNode() error {
|
||||
},
|
||||
}
|
||||
}
|
||||
inboundOptions = vlessOptions
|
||||
inboundOptions = &vlessOptions
|
||||
case "vmess":
|
||||
vmessOptions := option.VMessInboundOptions{
|
||||
ListenOptions: option.ListenOptions{
|
||||
ListenPort: uint16(inner.Port),
|
||||
},
|
||||
}
|
||||
inboundOptions = vmessOptions
|
||||
inboundOptions = &vmessOptions
|
||||
case "shadowsocks":
|
||||
ssOptions := option.ShadowsocksInboundOptions{
|
||||
ListenOptions: option.ListenOptions{
|
||||
@@ -290,14 +290,14 @@ func (s *Service) setupNode() error {
|
||||
Method: inner.Cipher,
|
||||
Password: inner.ServerKey,
|
||||
}
|
||||
inboundOptions = ssOptions
|
||||
inboundOptions = &ssOptions
|
||||
case "trojan":
|
||||
trojanOptions := option.TrojanInboundOptions{
|
||||
ListenOptions: option.ListenOptions{
|
||||
ListenPort: uint16(inner.Port),
|
||||
},
|
||||
}
|
||||
inboundOptions = trojanOptions
|
||||
inboundOptions = &trojanOptions
|
||||
default:
|
||||
return fmt.Errorf("unsupported protocol: %s", protocol)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user