已修掉这个编译错误。
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user