|
|
@ -611,8 +611,8 @@ bool AppInit2() |
|
|
|
std::string strError; |
|
|
|
std::string strError; |
|
|
|
if (mapArgs.count("-bind")) { |
|
|
|
if (mapArgs.count("-bind")) { |
|
|
|
BOOST_FOREACH(std::string strBind, mapMultiArgs["-bind"]) { |
|
|
|
BOOST_FOREACH(std::string strBind, mapMultiArgs["-bind"]) { |
|
|
|
CService addrBind(strBind, GetListenPort(), false); |
|
|
|
CService addrBind; |
|
|
|
if (!addrBind.IsValid()) |
|
|
|
if (!Lookup(strBind.c_str(), addrBind, GetListenPort(), false)) |
|
|
|
return InitError(strprintf(_("Cannot resolve -bind address: '%s'"), strBind.c_str())); |
|
|
|
return InitError(strprintf(_("Cannot resolve -bind address: '%s'"), strBind.c_str())); |
|
|
|
fBound |= Bind(addrBind); |
|
|
|
fBound |= Bind(addrBind); |
|
|
|
} |
|
|
|
} |
|
|
@ -625,7 +625,7 @@ bool AppInit2() |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
if (!fBound) |
|
|
|
if (!fBound) |
|
|
|
return false; |
|
|
|
return InitError(_("Not listening on any port")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mapArgs.count("-externalip")) |
|
|
|
if (mapArgs.count("-externalip")) |
|
|
|