Maint: move Openvpn package files

- Move internal/openvpn/config/*.go to internal/openvpn/
- Move internal/openvpn/setup.go to internal/vpn/openvpn.go
This commit is contained in:
Quentin McGaw (desktop)
2021-08-19 13:31:12 +00:00
parent d4ca5cf257
commit 105d81c018
13 changed files with 20 additions and 21 deletions

View File

@@ -10,7 +10,7 @@ import (
"github.com/qdm12/gluetun/internal/firewall"
"github.com/qdm12/gluetun/internal/loopstate"
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/openvpn/config"
"github.com/qdm12/gluetun/internal/openvpn"
"github.com/qdm12/gluetun/internal/portforward"
"github.com/qdm12/gluetun/internal/publicip"
"github.com/qdm12/gluetun/internal/routing"
@@ -35,7 +35,7 @@ type Loop struct {
buildInfo models.BuildInformation
versionInfo bool
// Configurators
openvpnConf config.Interface
openvpnConf openvpn.Interface
fw firewallConfigurer
routing routing.VPNGetter
portForward portforward.StartStopper
@@ -65,7 +65,7 @@ const (
func NewLoop(vpnSettings configuration.VPN,
providerSettings configuration.Provider,
allServers models.AllServers, openvpnConf config.Interface,
allServers models.AllServers, openvpnConf openvpn.Interface,
fw firewallConfigurer, routing routing.VPNGetter,
portForward portforward.StartStopper,
publicip publicip.Looper, dnsLooper dns.Looper,