| Index: sdk/lib/_internal/pub/lib/src/oauth2.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/oauth2.dart b/sdk/lib/_internal/pub/lib/src/oauth2.dart
|
| index f88c3d6e897e26127c9abec48175356009e97337..71468175396889a77b09e57a70069305f4aca729 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/oauth2.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/oauth2.dart
|
| @@ -168,9 +168,9 @@ Future<Client> _authorize() {
|
| // Spin up a one-shot HTTP server to receive the authorization code from the
|
| // Google OAuth2 server via redirect. This server will close itself as soon as
|
| // the code is received.
|
| - return SafeHttpServer.bind('localhost', 0).then((server) {
|
| + return SafeHttpServer.bind('127.0.0.1', 0).then((server) {
|
| var authUrl = grant.getAuthorizationUrl(
|
| - Uri.parse('http://localhost:${server.port}'), scopes: _scopes);
|
| + Uri.parse('http://127.0.0.1:${server.port}'), scopes: _scopes);
|
|
|
| log.message(
|
| 'Pub needs your authorization to upload packages on your behalf.\n'
|
|
|