Hot fix: interface name set for openvpn configs
This commit is contained in:
@@ -22,7 +22,7 @@ func (c *Cyberghost) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"persist-tun",
|
||||
|
||||
@@ -23,7 +23,7 @@ func (f *Fastestvpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"ping 15",
|
||||
|
||||
@@ -17,7 +17,7 @@ func (h *HideMyAss) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"ping 5",
|
||||
|
||||
@@ -20,7 +20,7 @@ func (i *Ipvanish) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"ping-timer-rem",
|
||||
|
||||
@@ -20,7 +20,7 @@ func (i *Ivpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"ping 5",
|
||||
|
||||
@@ -17,7 +17,7 @@ func (m *Mullvad) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -25,7 +25,7 @@ func (n *Nordvpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -21,7 +21,7 @@ func (p *Privado) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"ping 10",
|
||||
|
||||
@@ -40,7 +40,7 @@ func (p *PIA) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -21,7 +21,7 @@ func (p *Privatevpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -26,7 +26,7 @@ func (p *Protonvpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -17,7 +17,7 @@ func (p *Purevpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -26,7 +26,7 @@ func (s *Surfshark) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -26,7 +26,7 @@ func (t *Torguard) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -13,7 +13,7 @@ func (p *Provider) BuildConf(connection models.Connection,
|
||||
settings configuration.OpenVPN) (lines []string) {
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"tls-exit",
|
||||
|
||||
@@ -21,7 +21,7 @@ func (v *Vyprvpn) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
@@ -22,7 +22,7 @@ func (w *Windscribe) BuildConf(connection models.Connection,
|
||||
|
||||
lines = []string{
|
||||
"client",
|
||||
"dev tun",
|
||||
"dev " + settings.Interface,
|
||||
"nobind",
|
||||
"persist-key",
|
||||
"remote-cert-tls server",
|
||||
|
||||
Reference in New Issue
Block a user