kubedock icon indicating copy to clipboard operation
kubedock copied to clipboard

Support for IPv6

Open wruoting opened this issue 1 year ago • 2 comments
trafficstars

Hi! I am using kubedock in an IPv6 EKS cluster and running into the following:

W0710 14:15:07.637120 1 tcpproxy.go:99] error dialing 2600:1f18:22b:ed1f:ede::10:3306: dial tcp: address 2600:1f18:22b:ed1f:ede::10:3306: too many colons in address (attempt: 76)

when I try to use --reverse-proxy argument. Happy to provide more details or close this if it's a known issue, thanks!

wruoting avatar Jul 10 '24 14:07 wruoting

Looking at the docs for https://pkg.go.dev/net#Dial, it looks like the addresses for IPv6 just need to be wrapped with []. I'm happy to make a pull request for this if you think it's a good solution!

wruoting avatar Jul 18 '24 17:07 wruoting

Yes, that makes sense and would be much appreciated.

joyrex2001 avatar Jul 19 '24 06:07 joyrex2001