diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2017-06-20 11:03:42 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2017-06-27 11:01:03 -0400 |
commit | 17d4ddebffb53b85656fa6d370af137691cc1458 (patch) | |
tree | 70969d218697dbd4bdd25209f91818e755f53fe4 /src/mongo/transport/asio_utils.h | |
parent | 8fe4426fa36587ca40a0b6c8f1c84fd9aa61e5cf (diff) | |
download | mongo-17d4ddebffb53b85656fa6d370af137691cc1458.tar.gz |
SERVER-29165 Don't create RestrictionEnvironment in TransportLayer
Diffstat (limited to 'src/mongo/transport/asio_utils.h')
-rw-r--r-- | src/mongo/transport/asio_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/asio_utils.h b/src/mongo/transport/asio_utils.h index eb706f8488c..c06375da31f 100644 --- a/src/mongo/transport/asio_utils.h +++ b/src/mongo/transport/asio_utils.h @@ -46,7 +46,7 @@ inline SockAddr endpointToSockAddr(const asio::generic::stream_protocol::endpoin // Utility function to turn an ASIO endpoint into a mongo HostAndPort inline HostAndPort endpointToHostAndPort(const asio::generic::stream_protocol::endpoint& endPoint) { - return HostAndPort(endpointToSockAddr(endPoint).toString(true)); + return HostAndPort(endpointToSockAddr(endPoint)); } inline Status errorCodeToStatus(const std::error_code& ec) { |