added update profiles at startup, “announce-url” header, and also when adding check if the profile already exists and if it does, just update it

This commit is contained in:
coolcoala
2025-07-18 04:12:55 +03:00
parent 5e855e4755
commit 31d368979e
6 changed files with 121 additions and 3 deletions

View File

@@ -203,6 +203,7 @@ interface IProfileItem {
home?: string;
support_url?: string;
announce?: string;
announce_url?: string;
}
interface IProfileOption {
@@ -210,6 +211,7 @@ interface IProfileOption {
with_proxy?: boolean;
self_proxy?: boolean;
update_interval?: number;
update_always?: boolean;
timeout_seconds?: number;
danger_accept_invalid_certs?: boolean;
merge?: string;
@@ -752,6 +754,7 @@ interface IVergeConfig {
enable_global_hotkey?: boolean;
enable_dns_settings?: boolean;
primary_action?: "tun-mode" | "system-proxy";
enable_send_hwid?: boolean;
proxy_auto_config?: boolean;
pac_file_content?: string;
proxy_host?: string;