Maint: minor changes to openvpn/config package

- Constructor returns concrete struct instead of interface
- Rename conf to openvpnConf in openvpn loop
This commit is contained in:
Quentin McGaw (desktop)
2021-08-18 20:28:42 +00:00
parent ecdf9396a5
commit d9fbecaa01
7 changed files with 18 additions and 18 deletions

View File

@@ -35,7 +35,7 @@ type Loop struct {
buildInfo models.BuildInformation
versionInfo bool
// Configurators
conf config.Configurator
openvpnConf config.Interface
fw firewallConfigurer
routing routing.VPNGetter
portForward portforward.StartStopper
@@ -65,7 +65,7 @@ const (
func NewLoop(openVPNSettings configuration.OpenVPN,
providerSettings configuration.Provider,
allServers models.AllServers, conf config.Configurator,
allServers models.AllServers, openvpnConf config.Interface,
fw firewallConfigurer, routing routing.VPNGetter,
portForward portforward.StartStopper,
publicip publicip.Looper, dnsLooper dns.Looper,
@@ -84,7 +84,7 @@ func NewLoop(openVPNSettings configuration.OpenVPN,
state: state,
buildInfo: buildInfo,
versionInfo: versionInfo,
conf: conf,
openvpnConf: openvpnConf,
fw: fw,
routing: routing,
portForward: portForward,