From d44dbd2589df5886c9534243dd73b1076282c07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Tue, 8 Jul 2025 20:41:53 +0200 Subject: [PATCH] refactor: remove version field from config and update repo reference --- config.json | 1 - main.go | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config.json b/config.json index 0247efb..fe1b79e 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,4 @@ { - "version": "v1.0.2", "trustedSSIDs": [ "Yoda-Fi", "R2D2-Fi" diff --git a/main.go b/main.go index bf6dfb5..f6a1295 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,6 @@ var iconInactive []byte type Config struct { TrustedSSIDs []string `json:"trustedSSIDs"` ExitNodes []string `json:"exitNodes"` - Version string `json:"version"` // Add version field to config } var config Config @@ -53,17 +52,12 @@ func loadConfig() { config = Config{ TrustedSSIDs: []string{"Yoda-Fi", "R2D2-Fi"}, ExitNodes: []string{"homeassistant", "router", "vpn-node"}, - Version: currentVersion, // Set default version } f, err := os.Open("config.json") if err == nil { defer f.Close() _ = json.NewDecoder(f).Decode(&config) } - // Use version from config if present, else fallback to default - if config.Version != "" { - currentVersion = config.Version - } } func checkTailscaleExists() bool { @@ -324,7 +318,7 @@ func removeStartupShortcut() { } func checkForUpdate() { - const repo = "andreas-kruger/AutoExitNode" // Set to your repo + const repo = "woopstar/AutoExitNode" // Set to your repo url := fmt.Sprintf("https://api.github.com/repos/%s/releases/latest", repo) req, err := http.NewRequest("GET", url, nil)