summaryrefslogtreecommitdiff
path: root/src/mongo/transport/transport_layer_manager.cpp
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2018-12-20 10:45:35 -0500
committerJason Carey <jcarey@argv.me>2019-01-02 10:01:43 -0500
commit94f6c4d2832e4ec88b30045ceb1907af54725c78 (patch)
tree3b0b1f9addf4c5e685059fa24d9b4697b07e6a0d /src/mongo/transport/transport_layer_manager.cpp
parentba7f1223210a95b18b14271e498fb18c5b5e7b96 (diff)
downloadmongo-94f6c4d2832e4ec88b30045ceb1907af54725c78.tar.gz
SERVER-38177 Fix --repair with --bind_ip
Setting bind ips in server global params causes an error when spinning up an egress only transport layer. It's more appropriate in that case to ignore the bind ips.
Diffstat (limited to 'src/mongo/transport/transport_layer_manager.cpp')
-rw-r--r--src/mongo/transport/transport_layer_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/transport/transport_layer_manager.cpp b/src/mongo/transport/transport_layer_manager.cpp
index de36bb2e61f..2d3f7146775 100644
--- a/src/mongo/transport/transport_layer_manager.cpp
+++ b/src/mongo/transport/transport_layer_manager.cpp
@@ -121,6 +121,7 @@ Status TransportLayerManager::addAndStartTransportLayer(std::unique_ptr<Transpor
std::unique_ptr<TransportLayer> TransportLayerManager::makeAndStartDefaultEgressTransportLayer() {
transport::TransportLayerASIO::Options opts(&serverGlobalParams);
opts.mode = transport::TransportLayerASIO::Options::kEgress;
+ opts.ipList.clear();
auto ret = stdx::make_unique<transport::TransportLayerASIO>(opts, nullptr);
uassertStatusOK(ret->setup());