document magic constant in socks5 probe

This commit is contained in:
Yves Rutschle 2018-06-13 12:40:02 +00:00
parent dfd9e14866
commit 95e8f5731c

View File

@ -336,7 +336,9 @@ static int is_socks5_protocol(const char *p_in, int len, struct proto *proto)
if (len < 2 + m_count)
return PROBE_AGAIN;
/* Each authentication method number should be in range 0..9 */
/* Each authentication method number should be in range 0..9
* (https://www.iana.org/assignments/socks-methods/socks-methods.xhtml)
*/
for (i = 0; i < m_count; i++) {
if (p[2 + i] > 9)
return PROBE_NEXT;