Skip to content

Commit

Permalink
Ensure wireguard installation before running
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Oct 1, 2024
1 parent 7b27ecf commit 7feac96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/http-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func main() {
log.Fatalln("You need to run this service as root")
}

if err := wireguard_admin_service.EnsureWireguardInstallation(); err != nil {
log.Fatalln(err)
}

r := gin.Default()

const qrDir = "./qr-codes"
Expand Down

0 comments on commit 7feac96

Please sign in to comment.