samhocevar / rinetd

📡 TCP/UDP port redirector
GNU General Public License v2.0
859 stars 184 forks source link

Configuration parse error with some hostnames #20

Closed samhocevar closed 3 years ago

samhocevar commented 3 years ago

This happens when a hostname starts with [0-9a-f]* because it is incorrectly parsed as an IPv6.

Fixed in e3b47d086a368becf36820b7927a2453c93c5c96.

pjao commented 3 years ago

Hi @samhocevar

Fix one, broke another. This special case "::1".

rinetd: invalid syntax at line 24: ::1 5103 192.168.1.111 80

samhocevar commented 3 years ago

Thanks again! I really messed up with the PEG grammar when I added IPv6 support and overlooked many things, but it should behave correctly now.

pjao commented 3 years ago

Thanks for all your work.

Yes, it looks like now, everything is back to work very nice. Go head with release fix.

samhocevar commented 3 years ago

Version 0.73 is now out and hopefully fixes all this mess! Thanks for the testing.