How to check if sni is enabled