Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baoweise-bot/aimili-vpngate
/ functions
Functions
126 in github.com/baoweise-bot/aimili-vpngate
⨍
Functions
126
◇
Types & classes
3
↓ 57 callers
Method
send_json
(self, data: Any, status: HTTPStatus = HTTPStatus.OK)
vpngate_manager.py:5121
↓ 43 callers
Function
set_state
(**updates: Any)
vpngate_manager.py:341
↓ 27 callers
Function
log_to_json
(level: str, module: str, message: str)
vpngate_manager.py:322
↓ 26 callers
Function
parse_int
(value: Any)
vpngate_manager.py:407
↓ 26 callers
Function
read_nodes
()
vpngate_manager.py:346
↓ 23 callers
Function
write_json
(path: Path, data: Any)
vpngate_manager.py:173
↓ 20 callers
Function
load_ui_config
()
vpngate_manager.py:214
↓ 14 callers
Function
recv_exact
(sock: socket.socket, size: int)
proxy_server.py:28
↓ 11 callers
Function
active_openvpn_running
()
vpngate_manager.py:1153
↓ 10 callers
Function
env_int
(name: str, default: int, min_value: int | None = None, max_value: int | None = None)
vpngate_manager.py:81
↓ 8 callers
Method
read_json_body
(self, max_bytes: int = 65536)
vpngate_manager.py:5132
↓ 8 callers
Function
recv_exact_from_socket
(sock: socket.socket, size: int)
vpngate_manager.py:417
↓ 6 callers
Function
stop_active_openvpn
()
vpngate_manager.py:1129
↓ 5 callers
Function
auto_switch_node
(attempt: int = 0)
vpngate_manager.py:1520
↓ 5 callers
Function
bounded_int
(value: Any, default: int, min_value: int | None = None, max_value: int | None = None)
vpngate_manager.py:96
↓ 5 callers
Method
write
(self, data: str)
vpngate_manager.py:5723
↓ 4 callers
Function
apply_routing_filters
( nodes: list[dict[str, Any]], ui_cfg: dict[str, Any], include_unknown_ip_type: bool = False, )
vpngate_manager.py:1175
↓ 4 callers
Function
connect_node
(node_id: str)
vpngate_manager.py:1587
↓ 4 callers
Method
send_bytes
(self, body: bytes, content_type: str, status: HTTPStatus = HTTPStatus.OK)
vpngate_manager.py:5113
↓ 4 callers
Function
sort_all_nodes
(nodes: list[dict[str, Any]])
vpngate_manager.py:1156
↓ 3 callers
Function
check_proxy_health
()
vpngate_manager.py:4847
↓ 3 callers
Function
create_connection
(address: tuple[str, int], timeout: float = 20)
proxy_server.py:194
↓ 3 callers
Function
current_fixed_node_id
(ui_cfg: dict[str, Any])
vpngate_manager.py:1225
↓ 3 callers
Function
enforce_active_node_allowed_by_routing
(ui_cfg: dict[str, Any], reason: str = "路由规则已更新")
vpngate_manager.py:1254
↓ 3 callers
Method
get_secret_path
(self)
vpngate_manager.py:5063
↓ 3 callers
Function
maintain_valid_nodes
(force: bool = False)
vpngate_manager.py:1710
↓ 3 callers
Function
read_json
(path: Path, default: Any)
vpngate_manager.py:179
↓ 3 callers
Function
relay
(left: socket.socket, right: socket.socket)
proxy_server.py:223
↓ 3 callers
Function
run_openvpn_until_ready
(config_file: str, keep_alive: bool, route_nopull: bool, timeout: int | None = None, dev: str = "tun0")
vpngate_manager.py:993
↓ 3 callers
Function
stop_process
(process: subprocess.Popen[str] | None)
vpngate_manager.py:909
↓ 3 callers
Function
test_multiple_nodes
(node_ids: list[str])
vpngate_manager.py:1405
↓ 2 callers
Method
__init__
(self, file_path: str)
vpngate_manager.py:5718
↓ 2 callers
Function
_curl_check_ip
(url: str)
vpngate_manager.py:4891
↓ 2 callers
Function
_safe_int
(val: Any, default: int = 0)
vpn_utils.py:89
↓ 2 callers
Function
check_credentials
(username: str | None, password: str | None)
proxy_server.py:81
↓ 2 callers
Function
clear_active_connection_state
(message: str)
vpngate_manager.py:390
↓ 2 callers
Function
country_matches
(node_country: Any, target_country: Any)
vpngate_manager.py:1213
↓ 2 callers
Function
dns_query_over_tun0
(host: str, qtype: int, dns_server: str, timeout: float)
proxy_server.py:87
↓ 2 callers
Function
ensure_dirs
()
vpngate_manager.py:147
↓ 2 callers
Function
get_free_test_index
()
vpngate_manager.py:1318
↓ 2 callers
Function
get_proxy_credentials
()
proxy_server.py:52
↓ 2 callers
Function
get_state
()
vpngate_manager.py:352
↓ 2 callers
Function
get_upstream_proxy_config
()
vpn_utils.py:136
↓ 2 callers
Method
is_authorized
(self)
vpngate_manager.py:5067
↓ 2 callers
Function
kill_existing_openvpn_processes
()
vpngate_manager.py:918
↓ 2 callers
Function
load_blacklist
()
vpngate_manager.py:668
↓ 2 callers
Function
load_ip_cache
()
vpn_utils.py:362
↓ 2 callers
Function
normalized_country_name
(country: Any)
vpngate_manager.py:1209
↓ 2 callers
Function
parse_host_port
(authority: str, default_port: int)
proxy_server.py:37
↓ 2 callers
Function
parse_int
(value: Any)
proxy_server.py:22
↓ 2 callers
Function
proxy_auth_enabled
()
proxy_server.py:59
↓ 2 callers
Function
proxy_basic_auth_header
(username: str, password: str)
vpngate_manager.py:413
↓ 2 callers
Method
read_request_body
(self, max_bytes: int = 65536)
vpngate_manager.py:5124
↓ 2 callers
Function
reconnect_fixed_node_if_needed
(ui_cfg: dict[str, Any])
vpngate_manager.py:1292
↓ 2 callers
Function
release_test_index
(idx: int)
vpngate_manager.py:1326
↓ 2 callers
Function
safe_name
(value: str)
vpngate_manager.py:386
↓ 2 callers
Function
split_openvpn_command
()
vpngate_manager.py:828
↓ 2 callers
Function
test_config_path
(node_id: str)
vpngate_manager.py:1330
↓ 2 callers
Function
validate_node_allowed_by_routing
(node: dict[str, Any], ui_cfg: dict[str, Any])
vpngate_manager.py:1234
↓ 2 callers
Method
validate_path
(self)
vpngate_manager.py:5093
↓ 1 callers
Function
_proxy_config_from_env
(env_name: str, forced_type: str | None = None)
vpn_utils.py:116
↓ 1 callers
Function
cached_nodes
()
vpngate_manager.py:823
↓ 1 callers
Function
cleanup_old_logs
(logs_dir: Path)
vpngate_manager.py:294
↓ 1 callers
Function
cleanup_policy_routing
()
vpngate_manager.py:1121
↓ 1 callers
Function
decode_config
(encoded: str)
vpngate_manager.py:665
↓ 1 callers
Function
fetch_api_text
(url: str | None = None, use_ssl_verify: bool = True)
vpngate_manager.py:630
↓ 1 callers
Function
fetch_api_text_via_proxy
(url: str, ptype: str, phost: str, pport: int, use_ssl_verify: bool = True)
vpngate_manager.py:474
↓ 1 callers
Function
fetch_candidates
()
vpngate_manager.py:741
↓ 1 callers
Method
flush
(self)
vpngate_manager.py:5728
↓ 1 callers
Function
format_host_port
(host: str, port: int)
vpngate_manager.py:471
↓ 1 callers
Function
generate_random_password
()
vpngate_manager.py:189
↓ 1 callers
Function
generate_random_username
()
vpngate_manager.py:201
↓ 1 callers
Function
get_openvpn_version
()
vpngate_manager.py:834
↓ 1 callers
Function
get_physical_interface
()
vpn_utils.py:209
↓ 1 callers
Function
http_client
(client: socket.socket, first_byte: bytes)
proxy_server.py:297
↓ 1 callers
Function
main
()
vpngate_manager.py:5738
↓ 1 callers
Function
mark_blacklisted
(node: dict[str, Any], message: str)
vpngate_manager.py:688
↓ 1 callers
Function
openvpn_command
(config_file: str, route_nopull: bool, dev: str = "tun0")
vpngate_manager.py:850
↓ 1 callers
Function
parse_http_basic_auth
(lines: list[str])
proxy_server.py:63
↓ 1 callers
Function
parse_positive_int
(value: str | None, default: int)
proxy_server.py:13
↓ 1 callers
Function
parse_proxy_endpoint
(value: str, default_port: int)
vpn_utils.py:95
↓ 1 callers
Function
parse_vpngate_rows
(text: str)
vpngate_manager.py:659
↓ 1 callers
Function
proxy_client
(client: socket.socket, address: tuple[str, int])
proxy_server.py:378
↓ 1 callers
Function
read_http_header
(client: socket.socket, first_byte: bytes)
proxy_server.py:288
↓ 1 callers
Function
read_http_response_head
(sock: socket.socket, limit: int = 65536)
vpngate_manager.py:426
↓ 1 callers
Function
read_socks5_connect_reply
(sock: socket.socket)
vpngate_manager.py:453
↓ 1 callers
Function
resolve_dns_over_tun0
(host: str, dns_server: str = "8.8.8.8", timeout: float = 3.0)
proxy_server.py:181
↓ 1 callers
Function
row_to_node
(row: dict[str, str], config_text: str)
vpngate_manager.py:704
↓ 1 callers
Function
save_ip_cache
(cache: dict[str, dict[str, Any]])
vpn_utils.py:371
↓ 1 callers
Function
setup_policy_routing
(interface: str = "tun0")
vpngate_manager.py:1089
↓ 1 callers
Function
socks5_address_bytes
(host: str)
vpngate_manager.py:439
↓ 1 callers
Function
socks5_client
(client: socket.socket, first_byte: bytes)
proxy_server.py:236
↓ 1 callers
Function
tcp_latency_ms
(host: str, port: int, dev: str | None = None)
vpn_utils.py:236
↓ 1 callers
Function
test_node_by_id
(node_id: str)
vpngate_manager.py:1334
↓ 1 callers
Function
update_handshake_status
(line_lower: str)
vpngate_manager.py:975
↓ 1 callers
Function
upstream_proxy_auth_file
()
vpngate_manager.py:157
Method
__getattr__
(self, attr: str)
vpngate_manager.py:5735
Method
__init__
(self, server_address, RequestHandlerClass, bind_and_activate=True)
vpngate_manager.py:47
Function
_ipv4_getaddrinfo
(host, port, family=0, type=0, proto=0, flags=0)
vpngate_manager.py:31
Function
active_node_pinger
()
vpngate_manager.py:5031
next →
1–100 of 126, ranked by callers