diff options
Diffstat (limited to 'src/tools/showconf.c')
-rw-r--r-- | src/tools/showconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/showconf.c b/src/tools/showconf.c index 1de65b0..239968c 100644 --- a/src/tools/showconf.c +++ b/src/tools/showconf.c @@ -26,14 +26,13 @@ int showconf_main(int argc, char *argv[], struct wgoptions *options) struct wgpeer *peer; struct wgallowedip *allowedip; int ret = 1; - (void)options; if (argc != 2) { fprintf(stderr, "Usage: %s %s <interface>\n", PROG_NAME, argv[0]); return 1; } - if (ipc_get_device(&device, argv[1])) { + if (ipc_get_device(&options->dev_netns, &device, argv[1])) { perror("Unable to access interface"); goto cleanup; } |