]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: fix bind
authorSage Weil <sage@redhat.com>
Mon, 20 Jun 2016 17:09:25 +0000 (13:09 -0400)
committerSage Weil <sage@redhat.com>
Tue, 18 Oct 2016 20:40:10 +0000 (16:40 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/AsyncMessenger.cc

index f19dae71a39f8e15e4cd33c3da2245924f72f909..f1dbd04f49f81c72fbecaf7439ce57d898404f2c 100644 (file)
@@ -79,6 +79,9 @@ int Processor::bind(const entity_addr_t &bind_addr, const set<int>& 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 */