Skip to content

Commit

Permalink
SNI extraction bugfix: add forgotten hyphen as an allowed domain char…
Browse files Browse the repository at this point in the history
…acter

This fixes --allow-no-sni option for domains with hyphen.
  • Loading branch information
ValdikSS committed Dec 30, 2021
1 parent 5494be7 commit 277b1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 277b1fb

Please # to comment.