aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/src/client.js
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-08-12 11:32:54 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-08-12 11:32:54 -0700
commit4fdb2d5c8076c57c4ccdcc09216f6a35141b4fca (patch)
tree673d4a846fecd345b8e8846db5e94fb8c4f2fc14 /src/node/src/client.js
parentb8167bbc23d486a0884dab16f11c30df4f25820a (diff)
Fix scheme matching in auth URI
Diffstat (limited to 'src/node/src/client.js')
-rw-r--r--src/node/src/client.js2
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;