summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr-conflicts.yml2
-rwxr-xr-xsrc/conf_mode/vpn_ipsec.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/pr-conflicts.yml b/.github/workflows/pr-conflicts.yml
index f7084346c..72ff3969b 100644
--- a/.github/workflows/pr-conflicts.yml
+++ b/.github/workflows/pr-conflicts.yml
@@ -1,4 +1,4 @@
-ame: "PR Conflicts checker"
+name: "PR Conflicts checker"
on:
pull_request_target:
types: [synchronize]
diff --git a/src/conf_mode/vpn_ipsec.py b/src/conf_mode/vpn_ipsec.py
index 3eaa78a4b..f80a9455a 100755
--- a/src/conf_mode/vpn_ipsec.py
+++ b/src/conf_mode/vpn_ipsec.py
@@ -25,6 +25,7 @@ from vyos.configverify import verify_interface_exists
from vyos.ifconfig import Interface
from vyos.template import ip_from_cidr
from vyos.template import render
+from vyos.validate import is_ipv6_link_local
from vyos.util import call
from vyos.util import dict_search
from vyos.util import get_interface_address
@@ -173,7 +174,7 @@ def get_dhcp_address(iface):
if not addresses:
return None
for address in addresses:
- if not address.startswith("fe80:"): # Skip link-local ipv6
+ if not is_ipv6_link_local(address):
return ip_from_cidr(address)
return None