mirror of https://github.com/grpc/grpc.git
The host/port splitting code will not pull out a port if there are >=2 colons[1]. Unit test code demos this [2]. Note other documentation gets this right[3]. Example IP came from this issue[4] and the unit tests[2]. See also: relevant RFCs [5] [6] [1]pull/17192/head618a3f561d/src/core/lib/gpr/host_port.cc (L81)
[2]618a3f561d/test/core/client_channel/resolvers/sockaddr_resolver_test.cc (L107)
[3]https://chromium.googlesource.com/external/github.com/grpc/grpc/+/chromium-deps/2016-07-19/src/core/ext/client_config/README.md [4]https://github.com/grpc/grpc/issues/6623 [5]http://www.iana.org/go/rfc5952#section-6 [6]http://www.iana.org/go/rfc3986#section-3.2.3
parent
15be84ac2e
commit
f932b8e2d0
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue