Skip to content

Commit 20bfa82

Browse files
authored
Merge pull request cli#1014 from cli/auth-bind-fix
Fix referring to loopback interface in OAuth flow
2 parents bfc3e4e + 92e68af commit 20bfa82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) {
4141
state, _ := randomString(20)
4242

4343
code := ""
44-
listener, err := net.Listen("tcp", "localhost:0")
44+
listener, err := net.Listen("tcp4", "127.0.0.1:0")
4545
if err != nil {
4646
return
4747
}

0 commit comments

Comments
 (0)