diff --git a/main.go b/main.go index 1419723..a22f4a9 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( "time" ) -const VERSION = "v1" +const VERSION = "v2" const SPOOLDIR = "C:\\Program Files\\Gibon\\wg-spool" const DOMAIN = "https://vpn.gibonuddevalla.se" @@ -59,6 +59,10 @@ func logError(where, e string) { } func main() { + if _, disabledDoesntExist := os.Stat(SPOOLDIR+`\disabled`); disabledDoesntExist == nil { + return + } + publicKeyPath = SPOOLDIR + "\\wireguard-mfa.url" iface := os.Getenv("WIREGUARD_TUNNEL_NAME")