|
|
@ -10,10 +10,11 @@
|
|
|
|
#include "Tunnel.h"
|
|
|
|
#include "Tunnel.h"
|
|
|
|
#include "NetDb.h"
|
|
|
|
#include "NetDb.h"
|
|
|
|
#include "HTTPServer.h"
|
|
|
|
#include "HTTPServer.h"
|
|
|
|
|
|
|
|
#include "util.h"
|
|
|
|
|
|
|
|
|
|
|
|
int main( int, char** )
|
|
|
|
int main( int argc, char* argv[] )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
i2p::util::ParseArguments(argc,argv);
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifdef _WIN32
|
|
|
|
setlocale(LC_CTYPE, "");
|
|
|
|
setlocale(LC_CTYPE, "");
|
|
|
|
SetConsoleCP(1251);
|
|
|
|
SetConsoleCP(1251);
|
|
|
@ -21,7 +22,9 @@ int main( int, char** )
|
|
|
|
setlocale(LC_ALL, "Russian");
|
|
|
|
setlocale(LC_ALL, "Russian");
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
i2p::util::HTTPServer httpServer (7070);
|
|
|
|
int httpport = i2p::util::GetIntArg("--httpport", 7070);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
i2p::util::HTTPServer httpServer (httpport);
|
|
|
|
|
|
|
|
|
|
|
|
httpServer.Start ();
|
|
|
|
httpServer.Start ();
|
|
|
|
i2p::data::netdb.Start ();
|
|
|
|
i2p::data::netdb.Start ();
|
|
|
|