Maint: re-order OpenVPN options
This commit is contained in:
@@ -17,16 +17,17 @@ func (p *Purevpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"remote-cert-tls server",
|
||||
"tls-exit",
|
||||
"dev " + settings.Interface,
|
||||
"verb " + strconv.Itoa(settings.Verbosity),
|
||||
|
||||
// Purevpn specific
|
||||
"ping 10",
|
||||
"key-direction 1",
|
||||
"remote-cert-tls server",
|
||||
"key-direction 1",
|
||||
"cipher AES-256-CBC",
|
||||
"auth-user-pass " + constants.OpenVPNAuthConf,
|
||||
|
||||
// Added constant values
|
||||
"auth-nocache",
|
||||
@@ -35,9 +36,7 @@ func (p *Purevpn) BuildConf(connection models.Connection,
|
||||
"auth-retry nointeract",
|
||||
"suppress-timestamps",
|
||||
|
||||
// Modified variables
|
||||
"verb " + strconv.Itoa(settings.Verbosity),
|
||||
"auth-user-pass " + constants.OpenVPNAuthConf,
|
||||
// Connection variables
|
||||
connection.OpenVPNProtoLine(),
|
||||
connection.OpenVPNRemoteLine(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user