Skip to content

Commit

Permalink
Release 4.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Oct 31, 2022
1 parent 5639673 commit 2ffbdff
Show file tree
Hide file tree
Showing 829 changed files with 31 additions and 338,590 deletions.
47 changes: 23 additions & 24 deletions code/default/gae_proxy/local/check_local_network.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import sys
import os

Expand All @@ -8,27 +7,26 @@
current_path = os.path.dirname(os.path.abspath(__file__))

if __name__ == "__main__":
python_path = os.path.abspath( os.path.join(current_path, os.pardir, os.pardir))
python_path = os.path.abspath(os.path.join(current_path, os.pardir, os.pardir))
root_path = os.path.abspath(os.path.join(current_path, os.pardir, os.pardir))

noarch_lib = os.path.abspath( os.path.join(python_path, 'lib', 'noarch'))
noarch_lib = os.path.abspath(os.path.join(python_path, 'lib', 'noarch'))
sys.path.append(noarch_lib)
sys.path.append(root_path)

if sys.platform == "win32":
win32_lib = os.path.abspath( os.path.join(python_path, 'lib', 'win32'))
win32_lib = os.path.abspath(os.path.join(python_path, 'lib', 'win32'))
sys.path.append(win32_lib)
elif sys.platform.startswith("linux"):
linux_lib = os.path.abspath( os.path.join(python_path, 'lib', 'linux'))
linux_lib = os.path.abspath(os.path.join(python_path, 'lib', 'linux'))
sys.path.append(linux_lib)


from gae_proxy.local.config import config

import simple_http_client
from xlog import getLogger
xlog = getLogger("gae_proxy")

xlog = getLogger("gae_proxy")

max_timeout = 5

Expand All @@ -46,10 +44,11 @@ def __init__(self, type="IPv4"):
if config.PROXY_ENABLE:
if config.PROXY_USER:
self.proxy = "%s://%s:%s@%s:%d" % \
(config.PROXY_TYPE, config.PROXY_USER, config.PROXY_PASSWD, config.PROXY_HOST, config.PROXY_PORT)
(config.PROXY_TYPE, config.PROXY_USER, config.PROXY_PASSWD, config.PROXY_HOST,
config.PROXY_PORT)
else:
self.proxy = "%s://%s:%d" % \
(config.PROXY_TYPE, config.PROXY_HOST, config.PROXY_PORT)
(config.PROXY_TYPE, config.PROXY_HOST, config.PROXY_PORT)
else:
self.proxy = None

Expand Down Expand Up @@ -98,7 +97,7 @@ def _test_host(self, url):
"accept-encoding": "gzip, deflate, sdch",
"accept-language": 'en-US,en;q=0.8,ja;q=0.6,zh-CN;q=0.4,zh;q=0.2',
"connection": "keep-alive"
}
}
response = self.http_client.request("HEAD", url, header, "", read_payload=False)
if response:
return True
Expand Down Expand Up @@ -158,20 +157,20 @@ def triger_check_network(self, fail=False, force=False):

IPv4 = CheckNetwork("IPv4")
IPv4.urls = [
"https://www.microsoft.com",
"https://www.apple.com",
"https://code.jquery.com",
"https://cdn.bootcss.com",
"https://cdnjs.cloudflare.com"]
IPv4.triger_check_network()
"https://www.bing.com",
"https://code.jquery.com",
"https://cdn.bootcss.com",
"https://cdnjs.cloudflare.com"]
# IPv4.triger_check_network()

IPv6 = CheckNetwork("IPv6")
IPv6.urls = ["https://ipv6.vm3.test-ipv6.com",
"http://[2001:470:1:18::115]",
"http://ipv6.lookup.test-ipv6.com",
"http://v6.myip.la"
]
IPv6.triger_check_network()
IPv6.urls = [
"https://ipv6.vm3.test-ipv6.com",
"http://[2001:470:1:18::115]",
"http://ipv6.lookup.test-ipv6.com",
"http://v6.myip.la"
]
# IPv6.triger_check_network()


def report_ok(ip):
Expand All @@ -198,5 +197,5 @@ def is_ok(ip=None):


if __name__ == "__main__":
#print(IPv6._test_host("http://[2804:10:4068::202:82]"))
IPv4._test_host("https://www.baidu.com")
# print(IPv6._test_host("http://[2804:10:4068::202:82]"))
IPv4._test_host("https://www.baidu.com")
2 changes: 1 addition & 1 deletion code/default/launcher/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def check_loop():

# wait gae_proxy to start
# update need gae_proxy as proxy
time.sleep(1)
time.sleep(500)

while True:
check_update()
Expand Down
4 changes: 2 additions & 2 deletions code/default/launcher/web_ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ <h2 id="title"></h2>
var currentVer = result['current_version'];
document.getElementById("version_on_logo").appendChild(document.createTextNode(currentVer));

getRELEASENOTE_ISSUEID(currentVer);
// getRELEASENOTE_ISSUEID(currentVer);
}
});

Expand Down Expand Up @@ -741,7 +741,7 @@ <h2 id="title"></h2>
window.updateProgress_timer = $.timer(updateProgress, 1000, true);
updateProgress();
checkUpdateTimer = $.timer(getUpdateInfo, checkUpdateTimeout, true);
window.setTimeout(getUpdateInfo, 1000);
window.setTimeout(getUpdateInfo, 300*1000);
});

$('#update-now').click(updateVersion);
Expand Down
Binary file removed code/default/lib/win32/_brotli.cp310-win_amd64.pyd
Binary file not shown.
56 changes: 0 additions & 56 deletions code/default/lib/win32/brotli.py

This file was deleted.

2 changes: 1 addition & 1 deletion code/default/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.12.3
4.12.4
6 changes: 3 additions & 3 deletions code/default/x_tunnel/local/cloudflare_front/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def __init__(self, fn):
self.set_var("check_sni", 1)

# host_manager
self.set_var("update_domains", 1)
self.set_var("update_domains", 0)

# ip_manager
self.set_var("max_scan_ip_thread_num", 1)
self.set_var("max_good_ip_num", 50)
self.set_var("max_scan_ip_thread_num", 0)
self.set_var("max_good_ip_num", 100)
self.set_var("target_handshake_time", 500)
self.set_var("active_connect_interval", 3*60)
self.set_var("scan_ip_interval", 10)
Expand Down
2 changes: 1 addition & 1 deletion code/default/x_tunnel/local/heroku_front/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, fn):
self.set_var("check_sni", "*.herokuapp.com")

# host_manager
self.set_var("update_domains", True)
self.set_var("update_domains", 0)

# ip_manager
self.set_var("max_scan_ip_thread_num", 0)
Expand Down
Binary file removed python3/DLLs/_asyncio.pyd
Binary file not shown.
Binary file removed python3/DLLs/_bz2.pyd
Binary file not shown.
Binary file removed python3/DLLs/_ctypes.pyd
Binary file not shown.
Binary file removed python3/DLLs/_elementtree.pyd
Binary file not shown.
Binary file removed python3/DLLs/_lzma.pyd
Binary file not shown.
Binary file removed python3/DLLs/_msi.pyd
Binary file not shown.
Binary file removed python3/DLLs/_multiprocessing.pyd
Binary file not shown.
Binary file removed python3/DLLs/_overlapped.pyd
Binary file not shown.
Binary file removed python3/DLLs/_queue.pyd
Binary file not shown.
Binary file removed python3/DLLs/_ssl.pyd
Binary file not shown.
Binary file removed python3/DLLs/_zoneinfo.pyd
Binary file not shown.
Binary file removed python3/DLLs/libcrypto-1_1.dll
Binary file not shown.
Binary file removed python3/DLLs/libffi-7.dll
Binary file not shown.
Binary file removed python3/DLLs/libssl-1_1.dll
Binary file not shown.
Binary file removed python3/DLLs/py.ico
Binary file not shown.
Binary file removed python3/DLLs/pyc.ico
Binary file not shown.
Binary file removed python3/DLLs/pyd.ico
Binary file not shown.
Binary file removed python3/DLLs/python_tools.cat
Binary file not shown.
Binary file removed python3/DLLs/winsound.pyd
Binary file not shown.
147 changes: 0 additions & 147 deletions python3/Lib/__future__.py

This file was deleted.

1 change: 0 additions & 1 deletion python3/Lib/__phello__.foo.py

This file was deleted.

Loading

0 comments on commit 2ffbdff

Please sign in to comment.