MCPcopy Create free account

hub / github.com/baoweise-bot/aimili-vpngate / functions

Functions126 in github.com/baoweise-bot/aimili-vpngate

↓ 57 callersMethodsend_json
(self, data: Any, status: HTTPStatus = HTTPStatus.OK)
vpngate_manager.py:5121
↓ 43 callersFunctionset_state
(**updates: Any)
vpngate_manager.py:341
↓ 27 callersFunctionlog_to_json
(level: str, module: str, message: str)
vpngate_manager.py:322
↓ 26 callersFunctionparse_int
(value: Any)
vpngate_manager.py:407
↓ 26 callersFunctionread_nodes
()
vpngate_manager.py:346
↓ 23 callersFunctionwrite_json
(path: Path, data: Any)
vpngate_manager.py:173
↓ 20 callersFunctionload_ui_config
()
vpngate_manager.py:214
↓ 14 callersFunctionrecv_exact
(sock: socket.socket, size: int)
proxy_server.py:28
↓ 11 callersFunctionactive_openvpn_running
()
vpngate_manager.py:1153
↓ 10 callersFunctionenv_int
(name: str, default: int, min_value: int | None = None, max_value: int | None = None)
vpngate_manager.py:81
↓ 8 callersMethodread_json_body
(self, max_bytes: int = 65536)
vpngate_manager.py:5132
↓ 8 callersFunctionrecv_exact_from_socket
(sock: socket.socket, size: int)
vpngate_manager.py:417
↓ 6 callersFunctionstop_active_openvpn
()
vpngate_manager.py:1129
↓ 5 callersFunctionauto_switch_node
(attempt: int = 0)
vpngate_manager.py:1520
↓ 5 callersFunctionbounded_int
(value: Any, default: int, min_value: int | None = None, max_value: int | None = None)
vpngate_manager.py:96
↓ 5 callersMethodwrite
(self, data: str)
vpngate_manager.py:5723
↓ 4 callersFunctionapply_routing_filters
( nodes: list[dict[str, Any]], ui_cfg: dict[str, Any], include_unknown_ip_type: bool = False, )
vpngate_manager.py:1175
↓ 4 callersFunctionconnect_node
(node_id: str)
vpngate_manager.py:1587
↓ 4 callersMethodsend_bytes
(self, body: bytes, content_type: str, status: HTTPStatus = HTTPStatus.OK)
vpngate_manager.py:5113
↓ 4 callersFunctionsort_all_nodes
(nodes: list[dict[str, Any]])
vpngate_manager.py:1156
↓ 3 callersFunctioncheck_proxy_health
()
vpngate_manager.py:4847
↓ 3 callersFunctioncreate_connection
(address: tuple[str, int], timeout: float = 20)
proxy_server.py:194
↓ 3 callersFunctioncurrent_fixed_node_id
(ui_cfg: dict[str, Any])
vpngate_manager.py:1225
↓ 3 callersFunctionenforce_active_node_allowed_by_routing
(ui_cfg: dict[str, Any], reason: str = "路由规则已更新")
vpngate_manager.py:1254
↓ 3 callersMethodget_secret_path
(self)
vpngate_manager.py:5063
↓ 3 callersFunctionmaintain_valid_nodes
(force: bool = False)
vpngate_manager.py:1710
↓ 3 callersFunctionread_json
(path: Path, default: Any)
vpngate_manager.py:179
↓ 3 callersFunctionrelay
(left: socket.socket, right: socket.socket)
proxy_server.py:223
↓ 3 callersFunctionrun_openvpn_until_ready
(config_file: str, keep_alive: bool, route_nopull: bool, timeout: int | None = None, dev: str = "tun0")
vpngate_manager.py:993
↓ 3 callersFunctionstop_process
(process: subprocess.Popen[str] | None)
vpngate_manager.py:909
↓ 3 callersFunctiontest_multiple_nodes
(node_ids: list[str])
vpngate_manager.py:1405
↓ 2 callersMethod__init__
(self, file_path: str)
vpngate_manager.py:5718
↓ 2 callersFunction_curl_check_ip
(url: str)
vpngate_manager.py:4891
↓ 2 callersFunction_safe_int
(val: Any, default: int = 0)
vpn_utils.py:89
↓ 2 callersFunctioncheck_credentials
(username: str | None, password: str | None)
proxy_server.py:81
↓ 2 callersFunctionclear_active_connection_state
(message: str)
vpngate_manager.py:390
↓ 2 callersFunctioncountry_matches
(node_country: Any, target_country: Any)
vpngate_manager.py:1213
↓ 2 callersFunctiondns_query_over_tun0
(host: str, qtype: int, dns_server: str, timeout: float)
proxy_server.py:87
↓ 2 callersFunctionensure_dirs
()
vpngate_manager.py:147
↓ 2 callersFunctionget_free_test_index
()
vpngate_manager.py:1318
↓ 2 callersFunctionget_proxy_credentials
()
proxy_server.py:52
↓ 2 callersFunctionget_state
()
vpngate_manager.py:352
↓ 2 callersFunctionget_upstream_proxy_config
()
vpn_utils.py:136
↓ 2 callersMethodis_authorized
(self)
vpngate_manager.py:5067
↓ 2 callersFunctionkill_existing_openvpn_processes
()
vpngate_manager.py:918
↓ 2 callersFunctionload_blacklist
()
vpngate_manager.py:668
↓ 2 callersFunctionload_ip_cache
()
vpn_utils.py:362
↓ 2 callersFunctionnormalized_country_name
(country: Any)
vpngate_manager.py:1209
↓ 2 callersFunctionparse_host_port
(authority: str, default_port: int)
proxy_server.py:37
↓ 2 callersFunctionparse_int
(value: Any)
proxy_server.py:22
↓ 2 callersFunctionproxy_auth_enabled
()
proxy_server.py:59
↓ 2 callersFunctionproxy_basic_auth_header
(username: str, password: str)
vpngate_manager.py:413
↓ 2 callersMethodread_request_body
(self, max_bytes: int = 65536)
vpngate_manager.py:5124
↓ 2 callersFunctionreconnect_fixed_node_if_needed
(ui_cfg: dict[str, Any])
vpngate_manager.py:1292
↓ 2 callersFunctionrelease_test_index
(idx: int)
vpngate_manager.py:1326
↓ 2 callersFunctionsafe_name
(value: str)
vpngate_manager.py:386
↓ 2 callersFunctionsplit_openvpn_command
()
vpngate_manager.py:828
↓ 2 callersFunctiontest_config_path
(node_id: str)
vpngate_manager.py:1330
↓ 2 callersFunctionvalidate_node_allowed_by_routing
(node: dict[str, Any], ui_cfg: dict[str, Any])
vpngate_manager.py:1234
↓ 2 callersMethodvalidate_path
(self)
vpngate_manager.py:5093
↓ 1 callersFunction_proxy_config_from_env
(env_name: str, forced_type: str | None = None)
vpn_utils.py:116
↓ 1 callersFunctioncached_nodes
()
vpngate_manager.py:823
↓ 1 callersFunctioncleanup_old_logs
(logs_dir: Path)
vpngate_manager.py:294
↓ 1 callersFunctioncleanup_policy_routing
()
vpngate_manager.py:1121
↓ 1 callersFunctiondecode_config
(encoded: str)
vpngate_manager.py:665
↓ 1 callersFunctionfetch_api_text
(url: str | None = None, use_ssl_verify: bool = True)
vpngate_manager.py:630
↓ 1 callersFunctionfetch_api_text_via_proxy
(url: str, ptype: str, phost: str, pport: int, use_ssl_verify: bool = True)
vpngate_manager.py:474
↓ 1 callersFunctionfetch_candidates
()
vpngate_manager.py:741
↓ 1 callersMethodflush
(self)
vpngate_manager.py:5728
↓ 1 callersFunctionformat_host_port
(host: str, port: int)
vpngate_manager.py:471
↓ 1 callersFunctiongenerate_random_password
()
vpngate_manager.py:189
↓ 1 callersFunctiongenerate_random_username
()
vpngate_manager.py:201
↓ 1 callersFunctionget_openvpn_version
()
vpngate_manager.py:834
↓ 1 callersFunctionget_physical_interface
()
vpn_utils.py:209
↓ 1 callersFunctionhttp_client
(client: socket.socket, first_byte: bytes)
proxy_server.py:297
↓ 1 callersFunctionmain
()
vpngate_manager.py:5738
↓ 1 callersFunctionmark_blacklisted
(node: dict[str, Any], message: str)
vpngate_manager.py:688
↓ 1 callersFunctionopenvpn_command
(config_file: str, route_nopull: bool, dev: str = "tun0")
vpngate_manager.py:850
↓ 1 callersFunctionparse_http_basic_auth
(lines: list[str])
proxy_server.py:63
↓ 1 callersFunctionparse_positive_int
(value: str | None, default: int)
proxy_server.py:13
↓ 1 callersFunctionparse_proxy_endpoint
(value: str, default_port: int)
vpn_utils.py:95
↓ 1 callersFunctionparse_vpngate_rows
(text: str)
vpngate_manager.py:659
↓ 1 callersFunctionproxy_client
(client: socket.socket, address: tuple[str, int])
proxy_server.py:378
↓ 1 callersFunctionread_http_header
(client: socket.socket, first_byte: bytes)
proxy_server.py:288
↓ 1 callersFunctionread_http_response_head
(sock: socket.socket, limit: int = 65536)
vpngate_manager.py:426
↓ 1 callersFunctionread_socks5_connect_reply
(sock: socket.socket)
vpngate_manager.py:453
↓ 1 callersFunctionresolve_dns_over_tun0
(host: str, dns_server: str = "8.8.8.8", timeout: float = 3.0)
proxy_server.py:181
↓ 1 callersFunctionrow_to_node
(row: dict[str, str], config_text: str)
vpngate_manager.py:704
↓ 1 callersFunctionsave_ip_cache
(cache: dict[str, dict[str, Any]])
vpn_utils.py:371
↓ 1 callersFunctionsetup_policy_routing
(interface: str = "tun0")
vpngate_manager.py:1089
↓ 1 callersFunctionsocks5_address_bytes
(host: str)
vpngate_manager.py:439
↓ 1 callersFunctionsocks5_client
(client: socket.socket, first_byte: bytes)
proxy_server.py:236
↓ 1 callersFunctiontcp_latency_ms
(host: str, port: int, dev: str | None = None)
vpn_utils.py:236
↓ 1 callersFunctiontest_node_by_id
(node_id: str)
vpngate_manager.py:1334
↓ 1 callersFunctionupdate_handshake_status
(line_lower: str)
vpngate_manager.py:975
↓ 1 callersFunctionupstream_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
Functionactive_node_pinger
()
vpngate_manager.py:5031
next →1–100 of 126, ranked by callers