Maint: OpenVPN: only add persist-key when running without root
This commit is contained in:
@@ -24,7 +24,6 @@ func (w *Windscribe) BuildConf(connection models.Connection,
|
||||
"client",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
"ping 10",
|
||||
"ping-exit 60",
|
||||
@@ -59,6 +58,7 @@ func (w *Windscribe) BuildConf(connection models.Connection,
|
||||
if !settings.Root {
|
||||
lines = append(lines, "user "+settings.ProcUser)
|
||||
lines = append(lines, "persist-tun")
|
||||
lines = append(lines, "persist-key")
|
||||
}
|
||||
|
||||
if settings.MSSFix > 0 {
|
||||
|
||||
Reference in New Issue
Block a user