mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* drop i2p::util::config::GetCharArg
This commit is contained in:
parent
f3bee5ff3f
commit
1b2c88fe38
3 changed files with 4 additions and 11 deletions
|
@ -74,8 +74,8 @@ namespace i2p
|
|||
int port = i2p::util::config::GetArg("-port", 0);
|
||||
if (port)
|
||||
i2p::context.UpdatePort (port);
|
||||
const char * host = i2p::util::config::GetCharArg("-host", "");
|
||||
if (host && host[0])
|
||||
std::string host = i2p::util::config::GetArg("-host", "");
|
||||
if (host != "")
|
||||
i2p::context.UpdateAddress (boost::asio::ip::address::from_string (host));
|
||||
|
||||
i2p::context.SetSupportsV6 (i2p::util::config::GetArg("-v6", 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue