summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-04-25 09:27:55 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-04-25 09:27:55 -0400
commitedb24708c5d6d663e9de4632137306552c55b5a1 (patch)
tree18ce6d29a78f8fa801d2f17ac91537c353a205d8 /src/mongo/util
parent7ca032d3e36ec136e730dd46b81e796829b46e91 (diff)
downloadmongo-edb24708c5d6d663e9de4632137306552c55b5a1.tar.gz
Revert "SERVER-28229: Bind to localhost by default"
This reverts commit d6b244fce44e6729485b1521346db6e372f6b901.
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/net/listen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/net/listen.cpp b/src/mongo/util/net/listen.cpp
index 9d04059a743..67e9f394308 100644
--- a/src/mongo/util/net/listen.cpp
+++ b/src/mongo/util/net/listen.cpp
@@ -96,10 +96,10 @@ using std::vector;
vector<SockAddr> ipToAddrs(const char* ips, int port, bool useUnixSockets) {
vector<SockAddr> out;
if (*ips == '\0') {
- out.push_back(SockAddr("127.0.0.1", port)); // IPv4 localhost
+ out.push_back(SockAddr("0.0.0.0", port)); // IPv4 all
if (IPv6Enabled())
- out.push_back(SockAddr("::1", port)); // IPv6 localhost
+ out.push_back(SockAddr("::", port)); // IPv6 all
#ifndef _WIN32
if (useUnixSockets)
out.push_back(SockAddr(makeUnixSockPath(port), port)); // Unix socket