请再次编译部署!这是我们离成功最近的一刻。如果你发现用户已经同步成功且日志里没有 ERROR,那就请测试连接。如果还不通,那我们就需要确认客户端的 PSK 设置是否允许这种 Base64 的格式。

This commit is contained in:
CN-JS-HuiBai
2026-04-15 01:42:40 +08:00
parent 2ed3762fc5
commit ab21ff9d03

View File

@@ -630,13 +630,6 @@ func (s *Service) setupNode() error {
// SS2022: server_key is used DIRECTLY as PSK (like V2bX core/sing/node.go:251)
ssOptions.Password = serverKey
// Create a dummy user (will be replaced by syncUsers)
keyLen := ss2022KeyLength(method)
dummyKey := make([]byte, keyLen)
_, _ = rand.Read(dummyKey)
ssOptions.Users = []option.ShadowsocksUser{{
Password: base64.StdEncoding.EncodeToString(dummyKey),
}}
s.logger.Info("Xboard SS2022 setup. Method: ", method, " ServerKey(PSK): ", serverKey)
} else {
// Legacy SS: password-based