client.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:ParadoxIP150v2 作者: Tertiush 项目源码 文件源码
def tls_insecure_set(self, value):
        """Configure verification of the server hostname in the server certificate.

        If value is set to true, it is impossible to guarantee that the host
        you are connecting to is not impersonating your server. This can be
        useful in initial server testing, but makes it possible for a malicious
        third party to impersonate your server through DNS spoofing, for
        example.

        Do not use this function in a real system. Setting value to true means
        there is no point using encryption.

        Must be called before connect()."""
        if HAVE_SSL is False:
            raise ValueError('This platform has no SSL/TLS.')

        self._tls_insecure = value
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号