Browse Source

network sattus Mesh added

pull/1641/head
orignal 4 years ago
parent
commit
cf8665748b
  1. 2
      daemon/Daemon.cpp
  2. 1
      daemon/HTTPServer.cpp
  3. 3
      libi2pd/RouterContext.h

2
daemon/Daemon.cpp

@ -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);

1
daemon/HTTPServer.cpp

@ -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";

3
libi2pd/RouterContext.h

@ -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…
Cancel
Save