From: Sage Weil Date: Mon, 20 Jun 2016 17:09:17 +0000 (-0400) Subject: msg/simple: fix bind X-Git-Tag: v11.1.0~515^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a417a23ab517adddb3695655ad9edcce399cfdb;p=ceph.git msg/simple: fix bind Signed-off-by: Sage Weil --- diff --git a/src/msg/simple/Accepter.cc b/src/msg/simple/Accepter.cc index 95d88460ff4..16e6dfbfa31 100644 --- a/src/msg/simple/Accepter.cc +++ b/src/msg/simple/Accepter.cc @@ -100,6 +100,9 @@ int Accepter::bind(const entity_addr_t &bind_addr, const set& avoid_ports) // use whatever user specified (if anything) entity_addr_t listen_addr = bind_addr; + if (listen_addr.get_type() == entity_addr_t::TYPE_NONE) { + listen_addr.set_type(entity_addr_t::TYPE_LEGACY); + } listen_addr.set_family(family); /* bind to port */