diff --git a/main.go b/main.go index a4684e8..c1fd1ea 100644 --- a/main.go +++ b/main.go @@ -75,13 +75,13 @@ func localServer(tokenChannel chan<- Token) { func main() { flag.Parse() - fmt.Println("Hello World!") - if checkOpenVPNFile() != nil { return } - tokenChannel := make(chan Token) + // Make a some big room for the channel. + tokenChannel := make(chan Token, 65535) + // Open a quick local httpd before redirecting user to go to saml auth page. go localServer(tokenChannel) @@ -103,7 +103,7 @@ func main() { "--config", ovpnFile, "--auth-user-pass", tmpCredentialsFile, "--script-security", "2", "--up-restart", "--up", "scripts/linux.sh", "--down", "scripts/linux.sh", - "--setenv", "IV_PLAT", "linux", "--setenv", "IV_GUI_VER", "AVPNC-2.14.14", "--push-peer-info", "--log", logFile, + "--setenv", "IV_PLAT", "linux", "--setenv", "IV_GUI_VER", "AVPNC-2.16.42", "--push-peer-info", "--log", logFile, ) err = cmd.Run()