From 95e8f5731cef3072f9e33661365531cd08aea1a3 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Wed, 13 Jun 2018 12:40:02 +0000 Subject: [PATCH] document magic constant in socks5 probe --- probe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/probe.c b/probe.c index 79e5527..7ffcfa9 100644 --- a/probe.c +++ b/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;