Maint: better openvpn loop interface composition

This commit is contained in:
Quentin McGaw (laptop)
2021-07-24 18:56:42 +00:00
parent 849dfee200
commit 8153d4bb2a
6 changed files with 32 additions and 14 deletions

View File

@@ -1,6 +1,11 @@
package openvpn
import "github.com/qdm12/gluetun/internal/models"
import (
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/openvpn/state"
)
type ServersGetterSetter = state.ServersGetterSetter
func (l *looper) GetServers() (servers models.AllServers) {
return l.state.GetServers()