已修掉这个编译错误。

This commit is contained in:
CN-JS-HuiBai
2026-04-15 11:59:01 +08:00
parent 295e42ec8e
commit 4d764b2c05

View File

@@ -563,9 +563,6 @@ func (s *Service) setupNode() error {
inner.Port = config.ServerPort inner.Port = config.ServerPort
} }
} }
if inner.Port == 0 {
return fmt.Errorf("missing listen port for protocol %s", protocol)
}
if inner.Cipher == "" { if inner.Cipher == "" {
inner.Cipher = config.Cipher inner.Cipher = config.Cipher
} }
@@ -599,6 +596,9 @@ func (s *Service) setupNode() error {
s.logger.Error("Xboard setup error: could not identify protocol. Please check debug logs for raw JSON.") s.logger.Error("Xboard setup error: could not identify protocol. Please check debug logs for raw JSON.")
return fmt.Errorf("unsupported protocol: empty") return fmt.Errorf("unsupported protocol: empty")
} }
if inner.Port == 0 {
return fmt.Errorf("missing listen port for protocol %s", protocol)
}
s.logger.Info("Xboard protocol identified: ", protocol) s.logger.Info("Xboard protocol identified: ", protocol)
s.protocol = protocol s.protocol = protocol