mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
network sattus Mesh added
This commit is contained in:
parent
1b8da90cbb
commit
cf8665748b
@ -235,6 +235,8 @@ namespace util
|
|||||||
if (!ntcp2)
|
if (!ntcp2)
|
||||||
i2p::context.PublishNTCP2Address (port, true);
|
i2p::context.PublishNTCP2Address (port, true);
|
||||||
i2p::context.UpdateNTCP2V6Address (yggaddr);
|
i2p::context.UpdateNTCP2V6Address (yggaddr);
|
||||||
|
if (!ipv4 && !ipv6)
|
||||||
|
i2p::context.SetStatus (eRouterStatusMesh);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool transit; i2p::config::GetOption("notransit", transit);
|
bool transit; i2p::config::GetOption("notransit", transit);
|
||||||
|
@ -255,6 +255,7 @@ namespace http {
|
|||||||
case eRouterStatusFirewalled: s << "Firewalled"; break;
|
case eRouterStatusFirewalled: s << "Firewalled"; break;
|
||||||
case eRouterStatusUnknown: s << "Unknown"; break;
|
case eRouterStatusUnknown: s << "Unknown"; break;
|
||||||
case eRouterStatusProxy: s << "Proxy"; break;
|
case eRouterStatusProxy: s << "Proxy"; break;
|
||||||
|
case eRouterStatusMesh: s << "Mesh"; break;
|
||||||
case eRouterStatusError:
|
case eRouterStatusError:
|
||||||
{
|
{
|
||||||
s << "Error";
|
s << "Error";
|
||||||
|
@ -38,7 +38,8 @@ namespace garlic
|
|||||||
eRouterStatusFirewalled = 2,
|
eRouterStatusFirewalled = 2,
|
||||||
eRouterStatusError = 3,
|
eRouterStatusError = 3,
|
||||||
eRouterStatusUnknown = 4,
|
eRouterStatusUnknown = 4,
|
||||||
eRouterStatusProxy = 5
|
eRouterStatusProxy = 5,
|
||||||
|
eRouterStatusMesh = 6
|
||||||
};
|
};
|
||||||
|
|
||||||
enum RouterError
|
enum RouterError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user