File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ constexpr uint8_t NATPMP_RESULT_UNSUPP_VERSION = 1;
8484constexpr uint8_t NATPMP_RESULT_NO_RESOURCES = 4 ;
8585
8686// ! Mapping of NATPMP result code to string (RFC6886 3.5). Result codes <=2 match PCP.
87- const std::map<uint8_t , std::string> NATPMP_RESULT_STR{
87+ const std::map<uint16_t , std::string> NATPMP_RESULT_STR{
8888 {0 , " SUCCESS" },
8989 {1 , " UNSUPP_VERSION" },
9090 {2 , " NOT_AUTHORIZED" },
@@ -165,7 +165,7 @@ const std::map<uint8_t, std::string> PCP_RESULT_STR{
165165};
166166
167167// ! Return human-readable string from NATPMP result code.
168- std::string NATPMPResultString (uint8_t result_code)
168+ std::string NATPMPResultString (uint16_t result_code)
169169{
170170 auto result_i = NATPMP_RESULT_STR.find (result_code);
171171 return strprintf (" %s (code %d)" , result_i == NATPMP_RESULT_STR.end () ? " (unknown)" : result_i->second , result_code);
You can’t perform that action at this time.
0 commit comments