mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pass our address as boost's address
This commit is contained in:
parent
d513f20225
commit
a3fd338fab
5 changed files with 14 additions and 15 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue