mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Status: Proxy
This commit is contained in:
parent
8f90b21a5d
commit
f38920c338
3 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,8 @@ namespace garlic
|
|||
eRouterStatusTesting = 1,
|
||||
eRouterStatusFirewalled = 2,
|
||||
eRouterStatusError = 3,
|
||||
eRouterStatusUnknown = 4
|
||||
eRouterStatusUnknown = 4,
|
||||
eRouterStatusProxy = 5
|
||||
};
|
||||
|
||||
enum RouterError
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue