Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/521xueweihan/GitHub520
/ functions
Functions
14 in github.com/521xueweihan/GitHub520
⨍
Functions
14
◇
Types & classes
0
↓ 2 callers
Function
write_hosts_content
(content: str, content_list: list)
common.py:95
↓ 1 callers
Function
get_ip
(session: Any, github_url: str)
fetch_ips.py:128
↓ 1 callers
Function
get_ip_list_from_dns
( domain, record_type="A", dns_server_list=["1.2.4.8", "114.114.114.114"], )
fetch_ips.py:107
↓ 1 callers
Function
get_ip_list_from_doh
通过 DNS over HTTPS (DoH) 查询域名的 A 记录,优先使用国内 DoH 服务器
fetch_ips.py:68
↓ 1 callers
Function
get_json
(session: Any)
update_ips.py:18
↓ 1 callers
Function
main
()
fetch_ips.py:151
↓ 1 callers
Function
main
()
update_ips.py:29
↓ 1 callers
Function
ping_cached
通过 TCP 连接 443 端口测速(毫秒),更能反映国内 HTTPS 实际可用性,且无需 root 权限
fetch_ips.py:30
↓ 1 callers
Function
select_ip_from_list
(ip_list: List[str])
fetch_ips.py:50
↓ 1 callers
Function
windows_compatibility_check
()
fetch_ips.py:98
↓ 1 callers
Function
write_file
(hosts_content: str, update_time: str)
common.py:57
↓ 1 callers
Function
write_host_file
(hosts_content: str)
common.py:83
↓ 1 callers
Function
write_json_file
(hosts_list: list)
common.py:89
Function
get_json
(session: Any)
common.py:46