-
Notifications
You must be signed in to change notification settings - Fork 14
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
Binding to IPv4 and IPv6 works differently than in the examples #67
Comments
I'm using Jetforce v0.9.1 and I'm happy to aid in debugging or digging into the code. |
This is pretty standard. This is usual behaviour for Linux in my experience, and is probably standardized somewhere. I doubt this is related to Jetforce. |
Here's what jetforce/twisted is doing under the hood with the sockets:
This ticket describes pretty much the exact behavior that we're seeing and why it's complicated: twisted/twisted#198 Basically it's operating system dependent. For me it works, but I'm developing on macOS and my production server only uses IPv4. I could see a couple of fixes here:
I'm open to a PR! |
I think this is controlled by the |
After some fiddling around I found that:
When binding to "::", the IPv4 addresses are displayed as ::ffff:139.162.187.208 in the log.
Maybe we should just update the documentation to reflect this. Or is there something that should be changed in the code?
The text was updated successfully, but these errors were encountered: