Skip to content

Commit

Permalink
network sattus Mesh added
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 13, 2021
1 parent 1b8da90 commit cf86657
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions daemon/Daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions daemon/HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 2 additions & 1 deletion libi2pd/RouterContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ namespace garlic
eRouterStatusFirewalled = 2,
eRouterStatusError = 3,
eRouterStatusUnknown = 4,
eRouterStatusProxy = 5
eRouterStatusProxy = 5,
eRouterStatusMesh = 6
};

enum RouterError
Expand Down

0 comments on commit cf86657

Please sign in to comment.