Ed Davies is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

TIL: A Linux IPv6 socket will accept IPv4 connections (unless the IPV6_V6ONLY socket option is set). That's nice.

Such a socket bound to the loopback address (127.0.0.1 or ::1) will accept connections received on other interfaces. That's a bit more of a surprise.

Ed Davies @edavies

Oops, if it's actually on the loopback interface it won't accept connections from other interfaces which is less of a surprise.

(Got muddled up between Python code which wasn't working as expected and version written in C to make sure I understood the underlying interface.)

· Web · 0 · 0