From c570a7c5f2e3f588b0fec5992490e4bdf9da5306 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Wed, 15 Apr 2026 12:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/xboard/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/xboard/service.go b/service/xboard/service.go index 486e0aa3..de17112b 100644 --- a/service/xboard/service.go +++ b/service/xboard/service.go @@ -557,7 +557,9 @@ func (s *Service) setupNode() error { inner.Protocol = config.NodeType } 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 } else { inner.Port = config.ServerPort