finish OTP code

This commit is contained in:
Xavier Henner
2019-07-10 18:40:15 +02:00
parent 68de442333
commit 88f5ac3765
4 changed files with 36 additions and 4 deletions

View File

@@ -4,8 +4,10 @@ import (
"flag"
"log"
"log/syslog"
"math/rand"
"os"
"strings"
"time"
"github.com/pyke369/golang-support/uconfig"
)
@@ -24,6 +26,9 @@ func main() {
os.Exit(1)
}
// seed the prng
rand.Seed(time.Now().UnixNano())
server := NewVPNServer(config.GetString("config.openvpnPort", "127.0.0.01:5000"))
server.vpnlogUrl = config.GetString("config.vpnLogUrl", "")
server.mailRelay = config.GetString("config.mailRelay", "")