Skip to content

Commit

Permalink
Status: Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 6, 2021
1 parent 8f90b21 commit f38920c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions daemon/HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ namespace http {
case eRouterStatusOK: s << "OK"; break;
case eRouterStatusTesting: s << "Testing"; break;
case eRouterStatusFirewalled: s << "Firewalled"; break;
case eRouterStatusUnknown: s << "Unknown"; break;
case eRouterStatusProxy: s << "Proxy"; break;
case eRouterStatusError:
{
s << "Error";
Expand Down
3 changes: 2 additions & 1 deletion libi2pd/RouterContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ namespace garlic
eRouterStatusTesting = 1,
eRouterStatusFirewalled = 2,
eRouterStatusError = 3,
eRouterStatusUnknown = 4
eRouterStatusUnknown = 4,
eRouterStatusProxy = 5
};

enum RouterError
Expand Down
1 change: 1 addition & 0 deletions libi2pd/Transports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ namespace transport
proxytype = NTCP2Server::eHTTPProxy;

m_NTCP2Server->UseProxy(proxytype, proxyurl.host, proxyurl.port);
i2p::context.SetStatus (eRouterStatusProxy);
}
else
LogPrint(eLogError, "Transports: unsupported NTCP2 proxy URL ", ntcp2proxy);
Expand Down

0 comments on commit f38920c

Please sign in to comment.