Closed wkloucek closed 2 years ago
https://github.com/wkloucek/go-micro-test/issues/1#issuecomment-946645234
ip -6 addr del ::1/128 dev lo
makes it possible to start the code snippet without error.
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.
go get github.com/asim/go-micro/plugins/server/http/v4@4.0.0-20211028080348-ed690ed838cc
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.
go get github.com/asim/go-micro/plugins/server/http/v4@4.0.0-20211028080348-ed690ed838cc
This fixes it for my setup. Thank you very much for looking into it and fixing it!
Describe the bug
hello world
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: