From dc7bd3227dfea462d1ecd7d285972a61b267cfae Mon Sep 17 00:00:00 2001 From: hagbard Date: Thu, 23 Aug 2018 11:46:15 -0700 Subject: listen-port for update mode needs to be 0 to switch back to randomly chosen if previously configured --- src/conf_mode/wireguard.py | 4 +--- 1 file changed, 1 insertion(+), 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 " -- cgit v1.2.3