about summary refs log tree commit diff
path: root/src/main.go
blob: ae5063209535b204a226e3b2b481d8a0005c3026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main

import (
	"flag"
	"log"
)

func main() {
	// Set up flags
	registerHTTPFlags()
	registerSessionFlags()
	registerCredentialsFlags()
	registerSeedFlags()
	registerAccessFlags()
	flag.Parse()

	// Read challenges from file
	getChallengesFromSeedFile()

	// Start our VPN container and network
	startVPN()
	defer stopVPN()

	// Run HTTP server
	log.Fatalln(runHTTPServer())
}