[client] Fix pre-shared key state in wg show (#4222)

This commit is contained in:
Zoltan Papp
2025-07-25 22:52:48 +02:00
committed by GitHub
parent 3d9be5098b
commit d89e6151a4

View File

@ -530,7 +530,7 @@ func parseStatus(deviceName, ipcStr string) (*Stats, error) {
if currentPeer == nil {
continue
}
if val != "" {
if val != "" && val != "0000000000000000000000000000000000000000000000000000000000000000" {
currentPeer.PresharedKey = true
}
}