Browse Source

SNI extraction bugfix: add forgotten hyphen as an allowed domain character

This fixes --allow-no-sni option for domains with hyphen.
windivert2
ValdikSS 3 years ago
parent
commit
277b1fb4ef
  1. 2
      src/goodbyedpi.c

2
src/goodbyedpi.c

@ -417,7 +417,7 @@ static int extract_sni(const char *pktdata, unsigned int pktlen,
for (int i=0; i<hnlen; i++) {
if (!( (hnaddr[i] >= '1' && hnaddr[i] <= '9') ||
(hnaddr[i] >= 'a' && hnaddr[i] <= 'z') ||
hnaddr[i] == '.'))
hnaddr[i] == '.' || hnaddr[i] == '-'))
{
return FALSE;
}

Loading…
Cancel
Save