fix(server): encode ServerKey in base64 and update last reported time for nodes

This commit is contained in:
Chang lue Tsen
2025-09-04 09:26:50 -04:00
parent 10757612f5
commit 7ecf955eb7
3 changed files with 23 additions and 1 deletions
@@ -1,6 +1,7 @@
package server
import (
"encoding/base64"
"encoding/json"
"fmt"
@@ -102,7 +103,7 @@ func (l *GetServerConfigLogic) compatible(config node.Protocol) map[string]inter
result = ShadowsocksNode{
Port: config.Port,
Cipher: config.Cipher,
ServerKey: config.ServerKey,
ServerKey: base64.StdEncoding.EncodeToString([]byte(config.ServerKey)),
}
case Vless:
result = VlessNode{