diff options
Diffstat (limited to 'src/plugins/wireguard')
-rw-r--r-- | src/plugins/wireguard/wireguard_if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/wireguard/wireguard_if.c b/src/plugins/wireguard/wireguard_if.c index 64e405608f4..ab37d086492 100644 --- a/src/plugins/wireguard/wireguard_if.c +++ b/src/plugins/wireguard/wireguard_if.c @@ -38,7 +38,8 @@ static u8 * format_wg_if_name (u8 * s, va_list * args) { u32 dev_instance = va_arg (*args, u32); - return format (s, "wg%d", dev_instance); + wg_if_t *wgi = wg_if_get (dev_instance); + return format (s, "wg%d", wgi->user_instance); } u8 * |