Adding a simple GET HTTP Proxy

This commit is contained in:
Meeh 2014-03-17 23:31:29 +01:00
parent 014e1c54eb
commit d0a8cc933b
5 changed files with 366 additions and 2 deletions

View file

@ -22,6 +22,7 @@
#include "Tunnel.h"
#include "NetDb.h"
#include "HTTPServer.h"
#include "HTTPProxy.h"
#include "Garlic.h"
#include "util.h"
#include "Streaming.h"
@ -157,6 +158,9 @@ int main( int argc, char* argv[] )
i2p::garlic::routing.Start ();
i2p::stream::StartStreaming ();
i2p::proxy::HTTPProxy httpProxy (i2p::util::config::GetArg("-httpproxyport", 4446));
httpProxy.Start();
while (running)
{
//TODO Meeh: Find something better to do here.