Skip to content

Commit d89e615

Browse files
authored
[client] Fix pre-shared key state in wg show (#4222)
1 parent 3d9be50 commit d89e615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/iface/configurer/usp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ func parseStatus(deviceName, ipcStr string) (*Stats, error) {
530530
if currentPeer == nil {
531531
continue
532532
}
533-
if val != "" {
533+
if val != "" && val != "0000000000000000000000000000000000000000000000000000000000000000" {
534534
currentPeer.PresharedKey = true
535535
}
536536
}

0 commit comments

Comments
 (0)