Skip to content

Commit

Permalink
Don't use proxy when target is a Unix domain socket.
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Feb 9, 2017
1 parent 7bd2a62 commit 3878859
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/ext/client_channel/http_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ static bool proxy_mapper_map_name(grpc_exec_ctx* exec_ctx,
if (uri != NULL) grpc_uri_destroy(uri);
return false;
}
if (strcmp(uri->scheme, "unix") == 0) {
gpr_log(GPR_INFO, "not using proxy for Unix domain socket '%s'",
server_uri);
grpc_uri_destroy(uri);
return false;
}
grpc_arg new_arg;
new_arg.key = GRPC_ARG_HTTP_CONNECT_SERVER;
new_arg.type = GRPC_ARG_STRING;
Expand Down

0 comments on commit 3878859

Please sign in to comment.