示例#1
0
 def close_tunnel():
     tunnel_address = (
         ControlClient.proxies.get("https", "").replace("https://", "").split(":")[0]
     )
     if tunnel_address:
         logger.info("Quitting tunnel %s", tunnel_address)
         tunnel.quit_tunnel(tunnel_address)
示例#2
0
文件: monkey.py 项目: zkbupt/monkey
 def close_tunnel():
     tunnel_address = ControlClient.proxies.get('https', '').replace(
         'https://', '').split(':')[0]
     if tunnel_address:
         LOG.info("Quitting tunnel %s", tunnel_address)
         tunnel.quit_tunnel(tunnel_address)