-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[BUG] IPV6 too many colons in address #2308
Comments
https://github.com/wkloucek/go-micro-test/issues/1#issuecomment-946645234
|
IPV6 too many colons in address net.SplitHostPort need ipv6 address in [host]:port format
Try latest http server plugin github.com/asim/go-micro/plugins/server/http/v4, the ipv6 is in wrong format when try to register with default mdns registery.
|
This fixes it for my setup. Thank you very much for looking into it and fixing it! |
Describe the bug
I'm trying to start an http server with go-micro: https://github.com/wkloucek/go-micro-test/blob/main/test.go
The http server starts and responds with
hello world
On machines with IPv6 disabled (eg.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
) the server does what it should. But on machines with IPv6 enabled and a present IPv6 address, the http server dies with following message:How to reproduce the bug:
Code snippet is here: https://github.com/wkloucek/go-micro-test. Just run
go run test.go
on a machine with IPv6.To check if you have IPv6 addresses:
To check your IPv6 settings:
Environment:
The text was updated successfully, but these errors were encountered: