修改unittest的cn.bing.com 域名对应的地址为192.0.2.131

This commit is contained in:
fumingwei
2020-05-26 23:52:15 +08:00
parent af3802a0c5
commit 7cf13b6644

View File

@@ -37,7 +37,7 @@ http_insert_info_re = "http connection insert success"
http_hijack_info_re = "http connection hijack success"
http_block_info_re = "http connection block success"
wpr_dns_resolve = ['cn.bing.com:443:192.168.253.131']
wpr_dns_resolve = ['cn.bing.com:443:192.0.2.131']
class SSLCheckRequestBuild:
def __init__(self):
@@ -285,7 +285,7 @@ class SslHttpRequestBuild:
self.conn.close()
if os.path.exists("/root/http_hijack.out"):
os.remove("/root/http_hijack.out")
cmdtodo = 'curl %s -k -s --resolve cn.bing.com:443:192.168.253.131 -o /root/http_hijack.out' % URLHijack
cmdtodo = 'curl %s -k -s --resolve cn.bing.com:443:192.0.2.131 -o /root/http_hijack.out' % URLHijack
optdl = os.popen(cmdtodo)
if len(optdl.read()):
optdl.close()