-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proposal: net: I want to listen to both 127.0.0.1 and 10.0.0.1 with a single listener #14580
Comments
See filterAddrList in ipsock.go. It certainly returns a list of addresses. |
No, I mean in
and at https://github.com/golang/go/blob/master/src/net/ipsock.go#L244 |
Can you please elaborate your problem? I don't understand what's the problem. |
For example, If I want to listen to both 127.0.0.1 and 10.0.0.1 |
You didn't explain your problem. I'm still not sure what's your problem but looks like you want to have a single control knob that handles multiple address families, endpoints and subflows. So this is a duplicate of #9334. |
https://github.com/golang/go/blob/master/src/net/ipsock.go#L204
However the internetAddrList only return one valid address.
I proposal split addr string by "," and return REAL addrList.
The text was updated successfully, but these errors were encountered: