mirror of
https://github.com/fosrl/newt.git
synced 2026-03-08 23:03:03 -05:00
Newt UDP hole punching does not parse ipv6 port correctly #55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kevin-gillet on GitHub (Sep 4, 2025).
Newt version 1.4.4 seems to parse port for hole punching based on what is after the first colon, but this way of working is incompatible with ipv6 because the ipv6 adress is written with multiple colons.
Newt is installed as a systemd service on a debian12-lxc-amd64 container.
Here it is parsing "cf06" as the port but it is part of the ipv6 adress.
@oschwartz10612 commented on GitHub (Sep 4, 2025):
I think a similar fix that you did in
https://github.com/fosrl/olm/pull/26 would be appropriate here if you
have time! If not I can take a look.
@kevin-gillet commented on GitHub (Sep 5, 2025):
Hmm more challenge than expected here, the entire network stack is hardcoded to use ipv4, i will try to implement the dual stack to permit ipv6 use.
@kevin-gillet commented on GitHub (Sep 6, 2025):
Made some core changes here on the network stack, can you please test all the edge cases you know to be extensively sure they don't break.