mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
document magic constant in socks5 probe
This commit is contained in:
parent
dfd9e14866
commit
95e8f5731c
4
probe.c
4
probe.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user