Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmuc-mesh-vpn-wireguard-vxlan: fix IPv6 regex #96

Merged

Conversation

grische
Copy link
Contributor

@grische grische commented Mar 15, 2024

This fixes and improves IPv6 matching

  • do not strip trailing "::", for IPs like 2003:a:87f:c37c::
  • match IPs starting with ::, like ::1
  • match IPs not starting with a digit, like fd62:f45c:4d09:180:22b3:ff::
  • match IPs containing a zone identifier ("%"), like fe80::abcd%enp5s0

@grische grische requested a review from awlx March 15, 2024 15:41
This fixes and improves IPv6 matching
- do not strip trailing "::", for IPs like 2003:a:87f:c37c::
- match IPs with leading "::", like ::1
- match IPs not starting with a digit, like fd62:f45c:4d09:180:22b3:ff::
- match IPs containing a zone identifier ("%"), like fe80::abcd%enp5s0

Follow-up of 5ac2ac9
@grische grische merged commit dc0d196 into freifunk-gluon:master Mar 15, 2024
2 checks passed
@grische grische deleted the fix/ffmuc-mesh-vpn-wireguard-ipv6-regex branch March 15, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants