添加代理主机的设置,允许代理设置为其他IP(非127.0.0.1) (#2963)

允许下拉选择ip地址(支持IPv6)、localhost、以及当前系统的主机名,同时兼容手工输入
This commit is contained in:
逐雁南飛
2025-04-16 10:22:53 +08:00
committed by Tunglies
parent 1282cc56bf
commit b70cad537c
17 changed files with 223 additions and 21 deletions

View File

@@ -265,6 +265,10 @@ export async function getNetworkInterfaces() {
return invoke<string[]>("get_network_interfaces");
}
export async function getSystemHostname() {
return invoke<string>("get_system_hostname");
}
export async function getNetworkInterfacesInfo() {
return invoke<INetworkInterface[]>("get_network_interfaces_info");
}

View File

@@ -749,6 +749,7 @@ interface IVergeConfig {
enable_dns_settings?: boolean;
proxy_auto_config?: boolean;
pac_file_content?: string;
proxy_host?: string;
enable_random_port?: boolean;
verge_mixed_port?: number;
verge_socks_port?: number;