aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-21 18:11:44 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-21 18:11:44 -0700
commit33c0d9d83db8e47cb7090d20b1fcfa288964e4c0 (patch)
tree3231f17e56fed0310b944f8866e25cce5fcf6277 /src/node
parent4a4f1496c1b2fe6dc8336ee5f00c09568165a42a (diff)
C++ is also a language that can be insecure
Diffstat (limited to 'src/node')
-rw-r--r--src/node/ext/channel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/ext/channel.cc b/src/node/ext/channel.cc
index d37bf763dd..28fa255098 100644
--- a/src/node/ext/channel.cc
+++ b/src/node/ext/channel.cc
@@ -103,7 +103,7 @@ NAN_METHOD(Channel::New) {
NanUtf8String *host = new NanUtf8String(args[0]);
NanUtf8String *host_override = NULL;
if (args[1]->IsUndefined()) {
- wrapped_channel = grpc_channel_create(**host, NULL);
+ wrapped_channel = grpc_insecure_channel_create(**host, NULL);
} else if (args[1]->IsObject()) {
grpc_credentials *creds = NULL;
Handle<Object> args_hash(args[1]->ToObject()->Clone());
@@ -148,7 +148,7 @@ NAN_METHOD(Channel::New) {
}
}
if (creds == NULL) {
- wrapped_channel = grpc_channel_create(**host, &channel_args);
+ wrapped_channel = grpc_insecure_channel_create(**host, &channel_args);
} else {
wrapped_channel =
grpc_secure_channel_create(creds, **host, &channel_args);