From 277b1fb4ef3b7797879da9815646c033c694d43a Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 30 Dec 2021 19:16:43 +0300 Subject: [PATCH] SNI extraction bugfix: add forgotten hyphen as an allowed domain character This fixes --allow-no-sni option for domains with hyphen. --- src/goodbyedpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 2be2708..1aa69f9 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -417,7 +417,7 @@ static int extract_sni(const char *pktdata, unsigned int pktlen, for (int i=0; i= '1' && hnaddr[i] <= '9') || (hnaddr[i] >= 'a' && hnaddr[i] <= 'z') || - hnaddr[i] == '.')) + hnaddr[i] == '.' || hnaddr[i] == '-')) { return FALSE; }