From cf8665748b2224f9034320ee6008bd04fbb50715 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 13 Mar 2021 10:28:03 -0500 Subject: [PATCH] network sattus Mesh added --- daemon/Daemon.cpp | 2 ++ daemon/HTTPServer.cpp | 1 + libi2pd/RouterContext.h | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/Daemon.cpp b/daemon/Daemon.cpp index ecb4b59c68f..51783068355 100644 --- a/daemon/Daemon.cpp +++ b/daemon/Daemon.cpp @@ -235,6 +235,8 @@ namespace util if (!ntcp2) i2p::context.PublishNTCP2Address (port, true); i2p::context.UpdateNTCP2V6Address (yggaddr); + if (!ipv4 && !ipv6) + i2p::context.SetStatus (eRouterStatusMesh); } bool transit; i2p::config::GetOption("notransit", transit); diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index f6a4b0100c5..4741e5cf7d2 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -255,6 +255,7 @@ namespace http { case eRouterStatusFirewalled: s << "Firewalled"; break; case eRouterStatusUnknown: s << "Unknown"; break; case eRouterStatusProxy: s << "Proxy"; break; + case eRouterStatusMesh: s << "Mesh"; break; case eRouterStatusError: { s << "Error"; diff --git a/libi2pd/RouterContext.h b/libi2pd/RouterContext.h index c0b51ddf9fd..fe6c9ec9f28 100644 --- a/libi2pd/RouterContext.h +++ b/libi2pd/RouterContext.h @@ -38,7 +38,8 @@ namespace garlic eRouterStatusFirewalled = 2, eRouterStatusError = 3, eRouterStatusUnknown = 4, - eRouterStatusProxy = 5 + eRouterStatusProxy = 5, + eRouterStatusMesh = 6 }; enum RouterError