From df3fdfcc158fe776187bafadf0def7aa77a4a8fb Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Wed, 15 Apr 2026 01:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=86=8D=E6=AC=A1=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=EF=BC=81=E5=86=B2=E6=9C=80=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E6=AD=A5=EF=BC=81=E5=A6=82=E6=9E=9C=E4=BD=A0=E8=A7=89?= =?UTF-8?q?=E5=BE=97=E6=AF=8F=E4=B8=AA=E4=BA=BA=E7=9A=84=20PSK=20(?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AE=B5)=20=E9=83=BD=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E6=A0=B7=EF=BC=8C=E9=82=A3=E5=8F=AF=E8=83=BD=E6=98=AF=E4=BD=A0?= =?UTF-8?q?=E7=90=86=E8=A7=A3=E9=94=99=E4=BA=86=20SS2022=20=E7=9A=84?= =?UTF-8?q?=E5=A4=9A=E7=94=A8=E6=88=B7=E5=AE=9A=E4=B9=89=EF=BC=8C=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=E5=9C=A8=20Managed=20Inbound=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E7=AC=AC=E4=B8=80=E6=AE=B5=E5=BF=85=E9=A1=BB?= =?UTF-8?q?=E6=98=AF=E5=85=B1=E4=BA=AB=E7=9A=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/xboard/service.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/service/xboard/service.go b/service/xboard/service.go index 81d430aa..d1456de0 100644 --- a/service/xboard/service.go +++ b/service/xboard/service.go @@ -626,9 +626,8 @@ func (s *Service) setupNode() error { } if strings.Contains(method, "2022") { - // SS2022: server_key must be Base64-encoded to match client URI - keyLen := ss2022KeyLength(method) - ssOptions.Password = ss2022Key(serverKey, keyLen) + // SS2022: server_key is ALREADY Base64 from panel (Double-wrapping fixed) + ssOptions.Password = serverKey s.logger.Info("Xboard SS2022 setup. Method: ", method, " Master_PSK: ", ssOptions.Password) } else {