pass our address as boost's address

This commit is contained in:
orignal 2014-10-29 13:49:21 -04:00
parent d513f20225
commit a3fd338fab
5 changed files with 14 additions and 15 deletions

View file

@ -67,7 +67,7 @@ namespace i2p
i2p::context.UpdatePort (port);
const char * host = i2p::util::config::GetCharArg("-host", "");
if (host && host[0])
i2p::context.UpdateAddress (host);
i2p::context.UpdateAddress (boost::asio::ip::address::from_string (host));
if (i2p::util::config::GetArg("-unreachable", 0))
i2p::context.SetUnreachable ();