Disable with file, bumped to v2

This commit is contained in:
Magnus Åhall 2024-06-04 12:07:32 +02:00
parent 884a81e5d8
commit 1406989d11

View File

@ -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")