models.py 文件源码

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

项目:cbapi-python 作者: carbonblack 项目源码 文件源码
def interface_ip(self):
        """
        Returns ascii representation of the ip address of the interface used to communicate with the Cb Response server.
        If using NAT, this will be the "internal" IP address of the sensor.
        """
        try:
            ip_address = socket.inet_ntoa(struct.pack('>i', self._attribute('interface_ip', 0)))
        except:
            ip_address = self._attribute('interface_ip', 0)

        return ip_address
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号