[core] fix ssl detecting and filtration