Disable with file, bumped to v2
This commit is contained in:
parent
884a81e5d8
commit
1406989d11
6
main.go
6
main.go
@ -16,7 +16,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "v1"
|
const VERSION = "v2"
|
||||||
const SPOOLDIR = "C:\\Program Files\\Gibon\\wg-spool"
|
const SPOOLDIR = "C:\\Program Files\\Gibon\\wg-spool"
|
||||||
const DOMAIN = "https://vpn.gibonuddevalla.se"
|
const DOMAIN = "https://vpn.gibonuddevalla.se"
|
||||||
|
|
||||||
@ -59,6 +59,10 @@ func logError(where, e string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
if _, disabledDoesntExist := os.Stat(SPOOLDIR+`\disabled`); disabledDoesntExist == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
publicKeyPath = SPOOLDIR + "\\wireguard-mfa.url"
|
publicKeyPath = SPOOLDIR + "\\wireguard-mfa.url"
|
||||||
iface := os.Getenv("WIREGUARD_TUNNEL_NAME")
|
iface := os.Getenv("WIREGUARD_TUNNEL_NAME")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user