we only need one dot to confirm it is a valid domain name

github.com is valid but can not be retreive by server certificate
parsing

Signed-off-by: chiehminw <chiehminw@synology.com>
This commit is contained in:
chiehminw
2019-03-20 17:47:51 +08:00
parent db91837647
commit 96ed31874d
+2 -2
View File
@@ -216,11 +216,11 @@ int getSSLcertificate(struct ndpi_detection_module_struct *ndpi_struct,
break;
} else if(buffer[j] == '.') {
num_dots++;
if(num_dots >=2) break;
if(num_dots >=1) break;
}
}
if(num_dots >= 2) {
if(num_dots >= 1) {
if(!ndpi_struct->disable_metadata_export) {
stripCertificateTrailer(buffer, buffer_len);
snprintf(flow->protos.stun_ssl.ssl.server_certificate,