1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Improve exception message of Socks5 code

This commit is contained in:
Florian Schmaus 2016-11-05 18:24:07 +01:00
parent e266b1acd8
commit 32b4e74910

View file

@ -61,7 +61,7 @@ class Socks5Utils {
in.readFully(header, 0, 5);
if (header[3] != (byte) 0x03) {
throw new SmackException("Unsupported SOCKS5 address type");
throw new SmackException("Unsupported SOCKS5 address type: " + header[3] + " (expected: 0x03)");
}
int addressLength = header[4];