mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-17 21:01:48 +02:00
Adding more to the option parser.
Adding instruction on how to test it.
This commit is contained in:
parent
732b17a368
commit
633c9becd9
4 changed files with 40 additions and 6 deletions
5
i2p.cpp
5
i2p.cpp
|
@ -14,7 +14,7 @@
|
|||
|
||||
int main( int argc, char* argv[] )
|
||||
{
|
||||
i2p::util::ParseArguments(argc,argv);
|
||||
i2p::util::OptionParser(argc,argv);
|
||||
#ifdef _WIN32
|
||||
setlocale(LC_CTYPE, "");
|
||||
SetConsoleCP(1251);
|
||||
|
@ -22,6 +22,9 @@ int main( int argc, char* argv[] )
|
|||
setlocale(LC_ALL, "Russian");
|
||||
#endif
|
||||
|
||||
//TODO: This is an ugly workaround. fix it.
|
||||
//TODO: Autodetect public IP.
|
||||
i2p::context.OverrideNTCPAddress(i2p::util::GetCharArg("--host", "127.0.0.1"), i2p::util::GetIntArg("--port", 17070));
|
||||
int httpport = i2p::util::GetIntArg("--httpport", 7070);
|
||||
|
||||
i2p::util::HTTPServer httpServer (httpport);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue