Skip to content

network sockets: Convert outgoing "any" address to loopback#2142

Merged
francescolavra merged 1 commit intomasterfrom
feature/ip-any
Mar 7, 2026
Merged

network sockets: Convert outgoing "any" address to loopback#2142
francescolavra merged 1 commit intomasterfrom
feature/ip-any

Conversation

@francescolavra
Copy link
Member

Even though the "any" IP address (i.e. 0.0.0.0 for IPv4, [::] for IPv6) is not a valid routable destination address according to RFC standards (is only valid for binding a server to listen on all available interfaces), on Unix-like OSes outgoing network packets destined to this address are redirected to the loopback address. And a few user programs rely on this behavior.

…opback

Even though the "any" IP address (i.e. 0.0.0.0 for IPv4, [::] for IPv6) is
not a valid routable destination address according to RFC standards (is
only valid for binding a server to listen on all available interfaces), on
Unix-like OSes outgoing network packets destined to this address are
redirected to the loopback address. And a few user programs rely on this
behavior.
@francescolavra francescolavra merged commit c5feb70 into master Mar 7, 2026
7 checks passed
@francescolavra francescolavra deleted the feature/ip-any branch March 7, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant