diff --git a/service/xboard/service.go b/service/xboard/service.go index 9b267367..35895340 100644 --- a/service/xboard/service.go +++ b/service/xboard/service.go @@ -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) }