Skip to content

ipv6 and dual stack support - #229

Open
Vlad118 wants to merge 1 commit into
masterfrom
ipv6
Open

Vlad118 wants to merge 1 commit into
masterfrom
ipv6

Conversation

@Vlad118

@Vlad118 Vlad118 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Fixes #139 where servers using ipv6 addresses and ipv6 domain names are unreachable.

  • The bridge is made to match the outbound socket to IPv4 or IPv6, previously only IPv4.
  • The server listener is set to IPv6 and socket2 dependency is used to disable set_only_v6 flag (enabled by default for Windows, but allegedly not for Linux, which is why we need to use this extra dependency which exposes this flag in socket).
  • uPnP restricted to IPv4 only.

@Vlad118

Vlad118 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator Author

Note: IPv4 addresses are sanitised on lua side to automatically add the server port if omitting it, by checking if a colon : exists or not i.e. <ipv4_addr>:<port>. But as ipv6 addresses naturally contain colons, this does not work, so you need to type the port at the end of an ipv6 address. This could be fixed with a more intelligent regex to capture both ipv4 and ipv6 addresses and domains

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.

IPv6 issue

1 participant