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

2 comments on commit cf86657

@LLE8
Copy link

@LLE8 LLE8 commented on cf86657 Mar 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Что значат эти статусы? У меня на двух полностью одинаковых (я так думаю) vds статусы разные, один OK, второй Unknown. Это что-то значит?

@orignal
Copy link
Contributor Author

@orignal orignal commented on cf86657 Mar 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unknown означает что у тебя нет SSU. Если он у тебя выключен то грохни router.info и стартуй заново.
Mesh означает что работает только через yggdrasil

Please sign in to comment.