Maint: internal/vpn package for vpn loop
This commit is contained in:
21
internal/vpn/settings.go
Normal file
21
internal/vpn/settings.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package vpn
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/configuration"
|
||||
"github.com/qdm12/gluetun/internal/vpn/state"
|
||||
)
|
||||
|
||||
type SettingsGetSetter = state.SettingsGetSetter
|
||||
|
||||
func (l *Loop) GetSettings() (
|
||||
vpn configuration.VPN, provider configuration.Provider) {
|
||||
return l.state.GetSettings()
|
||||
}
|
||||
|
||||
func (l *Loop) SetSettings(ctx context.Context,
|
||||
vpn configuration.VPN, provider configuration.Provider) (
|
||||
outcome string) {
|
||||
return l.state.SetSettings(ctx, vpn, provider)
|
||||
}
|
||||
Reference in New Issue
Block a user