mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
Adding lightweight option parser
This commit is contained in:
parent
c361b7d914
commit
fb16e50c4d
3 changed files with 8 additions and 4 deletions
9
i2p.cpp
9
i2p.cpp
|
@ -10,10 +10,11 @@
|
|||
#include "Tunnel.h"
|
||||
#include "NetDb.h"
|
||||
#include "HTTPServer.h"
|
||||
#include "util.h"
|
||||
|
||||
int main( int, char** )
|
||||
int main( int argc, char* argv[] )
|
||||
{
|
||||
|
||||
i2p::util::ParseArguments(argc,argv);
|
||||
#ifdef _WIN32
|
||||
setlocale(LC_CTYPE, "");
|
||||
SetConsoleCP(1251);
|
||||
|
@ -21,7 +22,9 @@ int main( int, char** )
|
|||
setlocale(LC_ALL, "Russian");
|
||||
#endif
|
||||
|
||||
i2p::util::HTTPServer httpServer (7070);
|
||||
int httpport = i2p::util::GetIntArg("--httpport", 7070);
|
||||
|
||||
i2p::util::HTTPServer httpServer (httpport);
|
||||
|
||||
httpServer.Start ();
|
||||
i2p::data::netdb.Start ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue