Repository: mesos Updated Branches: refs/heads/master e1bae6125 -> 079fc0a97
Fixed process::initialize() to correctly deal with 127.0.0.1 address. Review: https://reviews.apache.org/r/31872 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/079fc0a9 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/079fc0a9 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/079fc0a9 Branch: refs/heads/master Commit: 079fc0a9798c344680c1a146605e192ec0e006e7 Parents: e1bae61 Author: Vinod Kone <[email protected]> Authored: Mon Mar 9 16:40:04 2015 -0700 Committer: Vinod Kone <[email protected]> Committed: Tue Mar 10 10:33:45 2015 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/src/process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/079fc0a9/3rdparty/libprocess/src/process.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp index 0796535..e7b029b 100644 --- a/3rdparty/libprocess/src/process.cpp +++ b/3rdparty/libprocess/src/process.cpp @@ -820,11 +820,11 @@ void initialize(const string& delegate) __address__ = bind.get(); - // Lookup hostname if missing ip or if ip is 127.0.0.1 in case we + // Lookup hostname if missing ip or if ip is 0.0.0.0 in case we // actually have a valid external ip address. Note that we need only // one ip address, so that other processes can send and receive and // don't get confused as to whom they are sending to. - if (__address__.ip.isAny() || __address__.ip.isLoopback()) { + if (__address__.ip.isAny()) { char hostname[512]; if (gethostname(hostname, sizeof(hostname)) < 0) {
