summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-08-17 16:56:52 +0000
committerhagbard <vyosdev@derith.de>2018-08-17 16:56:52 +0000
commit8cb56942e141f19af71f97d1093395326c99dbe5 (patch)
tree90039ea7e69f836453feaad39e4f93b0ad8d1b45 /src
parent3acb6381bc2a56e70a58b3a19ae817473f8dd5f4 (diff)
downloadvyos-1x-8cb56942e141f19af71f97d1093395326c99dbe5.tar.gz
vyos-1x-8cb56942e141f19af71f97d1093395326c99dbe5.zip
remove endpoint check, which is optional. server mode find the endpoint from an authenticated package.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/wireguard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/wireguard.py b/src/conf_mode/wireguard.py
index 7d52cfe94..3426acbe3 100755
--- a/src/conf_mode/wireguard.py
+++ b/src/conf_mode/wireguard.py
@@ -135,8 +135,8 @@ def verify(c):
for p in c['interfaces'][i]['peer']:
if not c['interfaces'][i]['peer'][p]['allowed-ips']:
raise ConfigError("allowed-ips required on interface " + i + " for peer " + p)
- if not c['interfaces'][i]['peer'][p]['endpoint']:
- raise ConfigError("endpoint required on interface " + i + " for peer " + p)
+# if not c['interfaces'][i]['peer'][p]['endpoint']:
+# raise ConfigError("endpoint required on interface " + i + " for peer " + p)
### eventually check allowed-ips (if it's an ip and valid CIDR or so)
### endpoint needs to be IP:port