Maint: use VPN settings instead of OpenVPN in loop

This commit is contained in:
Quentin McGaw (desktop)
2021-08-18 21:27:09 +00:00
parent 538bc72c3c
commit 05018ec971
7 changed files with 26 additions and 25 deletions

View File

@@ -63,7 +63,7 @@ const (
defaultBackoffTime = 15 * time.Second
)
func NewLoop(openVPNSettings configuration.OpenVPN,
func NewLoop(vpnSettings configuration.VPN,
providerSettings configuration.Provider,
allServers models.AllServers, openvpnConf config.Interface,
fw firewallConfigurer, routing routing.VPNGetter,
@@ -77,7 +77,7 @@ func NewLoop(openVPNSettings configuration.OpenVPN,
stopped := make(chan struct{})
statusManager := loopstate.New(constants.Stopped, start, running, stop, stopped)
state := state.New(statusManager, openVPNSettings, providerSettings, allServers)
state := state.New(statusManager, vpnSettings, providerSettings, allServers)
return &Loop{
statusManager: statusManager,