Compare commits

...

1 Commits

Author SHA1 Message Date
coward
19a025e888 🐛fix a bug
All checks were successful
continuous-integration/drone/tag Build is passing
2024-12-05 14:33:38 +08:00

View File

@@ -57,7 +57,7 @@ func (c networkClient) ClientOfflineNotify() {
for _, peer := range connectedPeers {
var clientName string
if !slices.ContainsFunc(clients, func(cli model.Client) bool {
isExist := peer.PublicKey.String() == jsoniter.Get([]byte(cli.Keys), "PublicKey").ToString()
isExist := peer.PublicKey.String() == jsoniter.Get([]byte(cli.Keys), "publicKey").ToString()
if isExist {
clientName = cli.Name
}