diff --git a/auth/oauth.go b/auth/oauth.go index 3f9d9ddc4..5e286443e 100644 --- a/auth/oauth.go +++ b/auth/oauth.go @@ -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 }