diff options
Diffstat (limited to 'ipc-uapi.h')
-rw-r--r-- | ipc-uapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc-uapi.h b/ipc-uapi.h index f582916ecc9f..1d8a2710250a 100644 --- a/ipc-uapi.h +++ b/ipc-uapi.h @@ -89,7 +89,7 @@ static int userspace_set_device(struct wgdevice *dev) continue; } else continue; - fprintf(f, "allowed_ip=%s/%d\n", ip, allowedip->cidr); + fprintf(f, "allowed_ip=%s%s/%d\n", (allowedip->flags & WGALLOWEDIP_REMOVE_ME) ? "-" : "", ip, allowedip->cidr); } } fprintf(f, "\n"); |