diff --git a/ChangeLog b/ChangeLog index 5a1b2871f..47ba05507 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * fix uTP edge case where udp socket buffer fills up * fix nagle implementation in uTP + * fixed verbose log error for NAT holepunching * fix a bunch of typos in python bindings * make get_settings available in the python binding regardless of deprecated functions * fix typo in python settings binding diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index e03a6e424..73527aa7d 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -1504,7 +1504,7 @@ namespace libtorrent error_code ec; char const* err_msg[] = {"no such peer", "not connected", "no support", "no self"}; peer_log("<== HOLEPUNCH [ msg:failed error: %d msg: %s ]", error - , ((error >= 0 && error < 4)?err_msg[error]:"unknown message id")); + , ((error > 0 && error < 5)?err_msg[error-1]:"unknown message id")); #endif // #error deal with holepunch errors (void)error;