Merge pull request #1014 from cli/auth-bind-fix

Fix referring to loopback interface in OAuth flow
This commit is contained in:
Mislav Marohnić 2020-06-02 10:34:47 +02:00 committed by GitHub
commit 20bfa821b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) {
state, _ := randomString(20)
code := ""
listener, err := net.Listen("tcp", "localhost:0")
listener, err := net.Listen("tcp4", "127.0.0.1:0")
if err != nil {
return
}