diff --git a/daemon/Daemon.cpp b/daemon/Daemon.cpp
index 17d17f72..090792bf 100644
--- a/daemon/Daemon.cpp
+++ b/daemon/Daemon.cpp
@@ -179,7 +179,7 @@ namespace util
bool transit; i2p::config::GetOption("notransit", transit);
i2p::context.SetAcceptsTunnels (!transit);
- uint16_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);
+ uint32_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);
if (isFloodfill && i2p::config::IsDefault ("limits.transittunnels"))
transitTunnels *= 2; // double default number of transit tunnels for floodfill
i2p::tunnel::tunnels.SetMaxNumTransitTunnels (transitTunnels);
diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp
index 862d6e4a..494a4e8e 100644
--- a/daemon/HTTPServer.cpp
+++ b/daemon/HTTPServer.cpp
@@ -772,7 +772,7 @@ namespace http {
s << " info \r\n";
s << " debug
\r\n
\r\n";
- uint16_t maxTunnels = i2p::tunnel::tunnels.GetMaxNumTransitTunnels ();
+ uint32_t maxTunnels = i2p::tunnel::tunnels.GetMaxNumTransitTunnels ();
s << "" << tr("Transit tunnels limit") << "
\r\n";
s << "