summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-10-11 08:45:44 -0700
committerhagbard <vyosdev@derith.de>2019-10-11 08:45:44 -0700
commitb8996f98127699d14626f254a27d26b9f5748b70 (patch)
tree7bf92bc952a2ab3459204e565f11de2376f925f6 /src
parentf5c04661e6c031baedb6092ecafee501cca7bc28 (diff)
downloadvyos-1x-b8996f98127699d14626f254a27d26b9f5748b70.tar.gz
vyos-1x-b8996f98127699d14626f254a27d26b9f5748b70.zip
wireguard: T1724 - add check for option endpoint
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interface-wireguard.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/interface-wireguard.py b/src/conf_mode/interface-wireguard.py
index 0dcce6b1c..7a684bafa 100755
--- a/src/conf_mode/interface-wireguard.py
+++ b/src/conf_mode/interface-wireguard.py
@@ -190,6 +190,8 @@ def verify(c):
raise ConfigError("ERROR: allowed-ips required for peer " + p)
if not c['peer'][p]['pubkey']:
raise ConfigError("peer pubkey required for peer " + p)
+ if not c['peer'][p]['endpoint']:
+ raise ConfigError("peer endpoint required for peer " + p)
def apply(c):