Hello Mathias, On 7/10/22 03:26, Mathias Gibbens wrote:
tags 1013554 + ipv6 thanksI've been unable to reproduce this locally, but have also seen instances in the past where the buildds have difficulty running tests that utilize IPv6. Maybe there's no "ip6-localhost" defined in /etc/hosts when the package is built? Would it be worth tryin literal IP addresses for localhost? I tested the following small patch locally and everything still passes properly for me.
Your patch LGTM, we can try it and see if it works. Do you want to submit a PR on salsa or should I backport it myself?
diff --git a/tcplisten_test.go b/tcplisten_test.go index e7877d6..f2f04b6 100644 --- a/tcplisten_test.go +++ b/tcplisten_test.go @@ -37,8 +37,8 @@ func TestConfigBacklog(t *testing.T) { }func testConfig(t *testing.T, cfg Config) {- testConfigV(t, cfg, "tcp4", "localhost:10081") - testConfigV(t, cfg, "tcp6", "ip6-localhost:10081") + testConfigV(t, cfg, "tcp4", "127.0.0.1:10081") + testConfigV(t, cfg, "tcp6", "[::1]:10081") }func testConfigV(t *testing.T, cfg Config, network, addr string) {Mathias
Cheers, -- ⢀⣴⠾⠻⢶⣦⠀ Aloïs Micard ⣾⠁⢠⠒⠀⣿⡁ Debian Developer ⢿⡄⠘⠷⠚⠋⠀ https://creekorful.org ⠈⠳⣄⠀⠀⠀⠀ DA4A A436 9BFA E299 67CD E85B F733 E871 0859 FCD2
OpenPGP_signature
Description: OpenPGP digital signature