-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Error for default settings #490
Labels
bug
Something isn't working
Comments
DaanSelen
added
question
Further information is requested
and removed
bug
Something isn't working
labels
Nov 15, 2024
On the sidebar when you go to the default settings for all configs not when
you create a peer.
…On Fri, Nov 15, 2024 at 7:12 AM dselen ***@***.***> wrote:
I tried this with the latest code. Could not reproduce.
image.png (view on web)
<https://github.com/user-attachments/assets/2fdaa19a-0250-4431-94db-d7a90e4350dc>
Can you try again? Or how are you running this?
—
Reply to this email directly, view it on GitHub
<#490 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BC2GJXNNZX4GNAPXKM6TW5T2AXQMTAVCNFSM6AAAAABRX6HVX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZYGY4DENBZGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
DaanSelen
added
bug
Something isn't working
and removed
question
Further information is requested
labels
Nov 15, 2024
Can reproduce. |
Broken FunctionSource of Problemif key == "peer_endpoint_allowed_ip":
value = value.split(",")
for i in value:
try:
ipaddress.ip_network(i, strict=False)
except Exception as e:
return False, str(e) Fixif key == "peer_endpoint_allowed_ip":
value = value.split(",")
for i in value:
i = i.strip() # Remove leading/trailing whitespace
try:
ipaddress.ip_network(i, strict=False)
except Exception as e:
return False, str(e) Tested Pass Cases
Tested Fail Cases
|
Hi @NOXCIS, thanks for providing the fix. Will create a PR later to fix this :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe The Problem
A suspected bug when trying to include all ipv6 ips in the default settings
Expected Error / Traceback
To Reproduce
enter what I had entered
OS Information:
The text was updated successfully, but these errors were encountered: