summaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/io_modules/hicn-light/hicn_forwarder_module.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtransport/src/io_modules/hicn-light/hicn_forwarder_module.cc b/libtransport/src/io_modules/hicn-light/hicn_forwarder_module.cc
index 26e7c97e5..0d45ba49d 100644
--- a/libtransport/src/io_modules/hicn-light/hicn_forwarder_module.cc
+++ b/libtransport/src/io_modules/hicn-light/hicn_forwarder_module.cc
@@ -42,10 +42,10 @@ void HicnForwarderModule::connect(bool is_consumer) {
// Safechecks
CHECK(uri.getProtocol() == "hicn")
<< "The protocol of the forwarder url should be hicn";
- auto port_min = (1 << 10);
- auto port_max = (1 << 16);
+ uint16_t port_min = (1 << 10);
+ uint16_t port_max = (1 << 16) - 1;
- auto port = std::stoul(uri.getPort());
+ uint16_t port = std::stoul(uri.getPort());
CHECK(port > port_min && port < port_max)
<< "The port should be between " << port_min << " and " << port_max;