Module: sems Branch: 1.5 Commit: a176458a0568511649fe5dbf63b9c361da3e48d7 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a176458a0568511649fe5dbf63b9c361da3e48d7
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Fri Jul 6 15:39:18 2012 +0200 b/f: devname to IP replacement fixed If device names are used to configure the interfaces, the function would return the default IP (first non-loopback) if the configured interface name is not the first one (except loopback). --- core/AmConfig.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/core/AmConfig.cpp b/core/AmConfig.cpp index a4f777a..7b29ae9 100644 --- a/core/AmConfig.cpp +++ b/core/AmConfig.cpp @@ -820,7 +820,7 @@ string fixIface2IP(const string& dev_name) intf_it != AmConfig::SysIfs.end(); ++intf_it) { if((!dev_name.empty() && (intf_it->name == dev_name)) - || !(intf_it->flags & IFF_LOOPBACK)) { + || (dev_name.empty() && !(intf_it->flags & IFF_LOOPBACK))) { if(intf_it->addrs.empty()){ ERROR("No IP address for interface '%s'\n",intf_it->name.c_str()); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
