mirror of
https://github.com/davegallant/vpngate.git
synced 2025-08-06 08:43:40 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c44dbaa92b |
@@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"time"
|
||||
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@@ -52,7 +53,8 @@ var connectCmd = &cobra.Command{
|
||||
|
||||
if flagRandom {
|
||||
// Select a random server
|
||||
serverSelected = (*vpnServers)[rand.Intn(len(*vpnServers))]
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
serverSelected = (*vpnServers)[rand.Intn(50)]
|
||||
} else {
|
||||
|
||||
if len(args) > 0 {
|
||||
|
Reference in New Issue
Block a user