haveachin / infrared

An ultra lightweight minecraft reverse proxy and idle placeholder
https://infrared.dev
GNU Affero General Public License v3.0
745 stars 60 forks source link

Unable to set ipv6 address to bind gateway to #175

Open Phoenix616 opened 1 year ago

Phoenix616 commented 1 year ago

Describe the bug When trying to set an IPv6 address in the standard format of e.g. [fe80::a6bf:1ff:fe47:4e8e]:25565 the following warning will show:

WARN unable to bind listener {"address": "[fe80::a6bf:1ff:fe47:4e8e]:25565", "error": "listen tcp: address fe80::a6bf:1ff:fe47:4e8e:25565: too many colons in address"

To Reproduce Specify any IPv6 address in the bind option of a gateway.

Using infrared v2.0.0-alpha.13, Debian 11.7.

Expected behavior Infrared to bind tot hat IPv6 address and port.

haveachin commented 1 year ago

That's odd. I was relatively sure that everything works with IPv6. Thanks for creating this issue, I'll look into it.

Phoenix616 commented 1 year ago

From the error it looks like it might remove the square brackets somehow before ever trying to parse it as an address, maybe something is up with the config loading?