Maint: OpenVPN: only add persist-tun when running without root

This commit is contained in:
Quentin McGaw (desktop)
2021-09-14 14:54:59 +00:00
parent 1022eb8a6e
commit 2ab05b9350
20 changed files with 20 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ func (p *Protonvpn) BuildConf(connection models.Connection,
if !settings.Root {
lines = append(lines, "user "+settings.ProcUser)
lines = append(lines, "persist-tun")
}
if !settings.IPv6 {