testers.py 文件源码

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

项目:mongoaudit 作者: Exploit-install 项目源码 文件源码
def get_connection(self):
        """
        Get the most secure kind of connection available.
        Returns:
          pymongo.MongoClient instance

        """
        fqdn, port = self.cred['nodelist'][0]
        if hasattr(self, 'conn'):
            self.conn.close()
            return self.get_plain_connection(fqdn, port)
        else:
            return self.get_tls_connection(fqdn, port)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号