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
1 changed files with 1 additions and 1 deletions

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];