Skip to content

fix: ping over the address family -4 or -6 asks for - #159

Open
BKPepe wants to merge 1 commit into
librespeed:masterfrom
BKPepe:fix/icmp-address-family
Open

BKPepe wants to merge 1 commit into
librespeed:masterfrom
BKPepe:fix/icmp-address-family

Conversation

@BKPepe

@BKPepe BKPepe commented Nov 22, 2026

Copy link
Copy Markdown
Member

The ICMP pinger resolved its target before the address family was set, so -4 and -6 did not apply to the ICMP ping. With -6, a dual-stack server was pinged over IPv4 while the HTTP requests went over IPv6.

Local server on 127.0.0.1 and ::1, a localhost server URL, -6 --debug:

before: Pinging 127.0.0.1 over ICMP (IPv4)
after:  Pinging ::1 over ICMP (IPv6)

The ICMP pinger resolved its target before the family was set, so with
--ipv6 a dual-stack server was pinged over IPv4 while the transfers ran
over IPv6.
@BKPepe
BKPepe force-pushed the fix/icmp-address-family branch from eb922dc to cf2bdc1 Compare November 22, 2026 14:34

This branch has not been deployed

No deployments
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