diff options
-rwxr-xr-x | src/conf_mode/wireguard.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conf_mode/wireguard.py b/src/conf_mode/wireguard.py index 1df7bcdf8..032a407ca 100755 --- a/src/conf_mode/wireguard.py +++ b/src/conf_mode/wireguard.py @@ -262,9 +262,7 @@ def configure_interface(c, intf): ### assemble wg command cmd = "sudo wg set " + intf - if wg_config['listen-port'] !=0: - cmd += " listen-port " + str(wg_config['listen-port']) - + cmd += " listen-port " + str(wg_config['listen-port']) cmd += " private-key " + wg_config['private-key'] cmd += " peer " + wg_config['peer']['pubkey'] cmd += " allowed-ips " |