diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2025-05-21 01:31:03 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2025-05-21 01:34:11 +0000 |
commit | 2a7e45eef31292cf9dd82caf3346eb2acb5b6225 (patch) | |
tree | 06c3c5a33b827a17950967f799d32b6aae365eb2 /show.c | |
parent | 93bf91b4012a28610672d2266366dfa0a663b70f (diff) |
Diffstat (limited to 'show.c')
-rw-r--r-- | show.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -312,9 +312,9 @@ static bool ugly_print(struct wgdevice *device, const char *param, bool with_int else printf("off\n"); } else if (!strcmp(param, "endpoints")) { - if (with_interface) - printf("%s\t", device->name); for_each_wgpeer(device, peer) { + if (with_interface) + printf("%s\t", device->name); printf("%s\t", key(peer->public_key)); if (peer->endpoint.addr.sa_family == AF_INET || peer->endpoint.addr.sa_family == AF_INET6) printf("%s\n", endpoint(&peer->endpoint.addr)); |