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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user