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

This fixes --allow-no-sni option for domains with hyphen.
This commit is contained in:
ValdikSS 2021-12-30 19:16:43 +03:00
parent 5494be72ba
commit 277b1fb4ef
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}