From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.github.com (out-18.smtp.github.com [192.30.252.201]) by mail.toke.dk (Postfix) with ESMTPS id 000BF8C7650 for ; Fri, 1 Oct 2021 15:01:12 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key) header.d=github.com header.i=@github.com header.b=bGvY+gEU Received: from github-lowworker-cb47c52.ac4-iad.github.net (github-lowworker-cb47c52.ac4-iad.github.net [10.52.112.28]) by smtp.github.com (Postfix) with ESMTP id CB317340BED for ; Fri, 1 Oct 2021 06:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1633093271; bh=+qqq9vfJisDpkEymOBkfI497l/KaKcFOKkD1Rbh2AC8=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=bGvY+gEUY5FUMBBKaQ1J235PErLaq5jNaU3w5dCnj0pfwiqcpbADs5qFGQM/HMQAr nPse05B7sl6pzeKStmO5KgPeb5WppU9HFdPQMpd2Z6CbJbgRBo6KmE3gTEEfn7FID1 4uGW+pQ3ptilfN1QsmG1RhXEeJ5zajsuR37iQepo= Date: Fri, 01 Oct 2021 06:01:11 -0700 From: Pete Heist To: tohojo/flent Message-ID: In-Reply-To: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_61570697bd94b_6115c76030416c"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: heistp X-GitHub-Recipient: flent-users X-GitHub-Reason: subscribed X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: flent-users@flent.org Message-ID-Hash: CDKXEFCMGDXAA366GDWF4UBFPADNFJLW X-Message-ID-Hash: CDKXEFCMGDXAA366GDWF4UBFPADNFJLW X-MailFrom: noreply@github.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Subscribed X-Mailman-Version: 3.3.4 Reply-To: tohojo/flent Subject: [Flent-users] Re: [tohojo/flent] -6 Option ignored for hosts with IPv4 and IPv6 address (#241) List-Id: Flent discussion list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ----==_mimepart_61570697bd94b_6115c76030416c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I never noticed this, actually. The standard net.Dial(), for "historical reasons", just prefers IPv4 instead of relying on the local resolver. This prompted a "Wow, okay" from B. Fitzpatrick. (https://github.com/golang/go/issues/20911). It looks like one can get around that by using the Lookup* methods first, but that is a hassle that will require some experimentation to make sure the behavior is right, e.g. with and without cgo and for unspecified listener addresses etc, for something that should ideally "just work". Anyway, thanks for working around that. :/ -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/tohojo/flent/issues/241#issuecomment-932205848 ----==_mimepart_61570697bd94b_6115c76030416c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

I never noticed this, actually. The standard net.Dial(), for "historical reasons", just prefers IPv4 instead of relying on the local resolver. This prompted a "Wow, okay" from B. Fitzpatrick. (golang/go#20911).

It looks like one can get around that by using the Lookup* methods first, but that is a hassle that will require some experimentation to make sure the behavior is right, e.g. with and without cgo and for unspecified listener addresses etc, for something that should ideally "just work".

Anyway, thanks for working around that. :/


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

----==_mimepart_61570697bd94b_6115c76030416c--