diff options
author | 2015-08-12 11:32:54 -0700 | |
---|---|---|
committer | 2015-08-12 11:32:54 -0700 | |
commit | 4fdb2d5c8076c57c4ccdcc09216f6a35141b4fca (patch) | |
tree | 673d4a846fecd345b8e8846db5e94fb8c4f2fc14 /src/node/src/client.js | |
parent | b8167bbc23d486a0884dab16f11c30df4f25820a (diff) |
Fix scheme matching in auth URI
Diffstat (limited to 'src/node/src/client.js')
-rw-r--r-- | src/node/src/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js index a253c86025..4e63145642 100644 --- a/src/node/src/client.js +++ b/src/node/src/client.js @@ -549,7 +549,7 @@ exports.makeClientConstructor = function(methods, serviceName) { options['grpc.primary_user_agent'] = 'grpc-node/' + version; this.channel = new grpc.Channel(address, credentials, options); // Extract the DNS name from the address string - address = address.replace(/(\w+:\/\/)?([^:]+)(:\d+)?\/?$/, '$2'); + address = address.replace(/(\w+:\/\/+)?([^:]+)(:\d+)?\/?$/, '$2'); this.server_address = address; this.auth_uri = 'https://' + this.server_address + '/' + serviceName; this.updateMetadata = updateMetadata; |