完善日志

This commit is contained in:
CN-JS-HuiBai
2026-04-15 12:01:54 +08:00
parent 4d764b2c05
commit c570a7c5f2

View File

@@ -557,7 +557,9 @@ func (s *Service) setupNode() error {
inner.Protocol = config.NodeType inner.Protocol = config.NodeType
} }
if inner.Port == 0 { if inner.Port == 0 {
if config.Port != 0 { if inner.ServerPort != 0 {
inner.Port = inner.ServerPort
} else if config.Port != 0 {
inner.Port = config.Port inner.Port = config.Port
} else { } else {
inner.Port = config.ServerPort inner.Port = config.ServerPort