]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/auth: fix .netrc lookup for URLs with specified port
authorDavid Howden <dhowden@gmail.com>
Fri, 7 Feb 2020 21:59:45 +0000 (08:59 +1100)
committerBryan C. Mills <bcmills@google.com>
Thu, 12 Mar 2020 12:58:31 +0000 (12:58 +0000)
commit139a79dc37cd9c6d2b397ebf12da6b7df4e65bb8
treec5faaa23a75bc621bdde64469669d4fd5886ada5
parent65bd07611c95d66c60eca57932714e6bd0059c54
cmd/go/internal/auth: fix .netrc lookup for URLs with specified port

The .netrc spec [1] defines credentials based on "machine name", so remove specified ports
from URL before looking for a match.

[1] https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html

Fixes #37130

Change-Id: Iab993afba26c927454d6166111ad1e1a53dbce43
Reviewed-on: https://go-review.googlesource.com/c/go/+/218418
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/auth/auth.go