diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-08-29 01:56:38 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-12 23:34:17 +0100 |
commit | 50f4916fce668186c270550053978e13cb700f8a (patch) | |
tree | 40104f304c60610b880df34a8c71b5ee08dcdb5b | |
parent | 99d15342327cdc1f9d6fb06ded4e77c3820df5e6 (diff) |
Wireguard: Don't fix listen_port update
-rw-r--r-- | proto/wireguard/wireguard.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/wireguard/wireguard.c b/proto/wireguard/wireguard.c index 6ac235f7..1837dc9c 100644 --- a/proto/wireguard/wireguard.c +++ b/proto/wireguard/wireguard.c @@ -44,8 +44,10 @@ int get_device(struct wg_proto *p, wg_device **pdev, const char *device_name) wg_generate_public_key(dev->public_key, dev->private_key); } if (c->listen_port) - dev->flags |= WGDEVICE_HAS_LISTEN_PORT; - dev->listen_port = c->listen_port; + { + dev->flags |= WGDEVICE_HAS_LISTEN_PORT; + dev->listen_port = c->listen_port; + } DBG("listen port %d\n", c->listen_port); struct peer_config *pc = NULL; |