aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
Diffstat (limited to 'src/node')
-rw-r--r--src/node/src/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js
index 06a0f3637f..da6327b432 100644
--- a/src/node/src/client.js
+++ b/src/node/src/client.js
@@ -521,9 +521,9 @@ function makeClientConstructor(methods, serviceName) {
if (!options) {
options = {};
}
- options.GRPC_ARG_PRIMARY_USER_AGENT_STRING = 'grpc-node/' + version;
- this.server_address = address.replace(/\/$/, '');
+ options['grpc.primary_user_agent'] = 'grpc-node/' + version;
this.channel = new grpc.Channel(address, options);
+ this.server_address = address.replace(/\/$/, '');
this.auth_uri = this.server_address + '/' + serviceName;
this.updateMetadata = updateMetadata;
}