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