21 lines
411 B
Go
21 lines
411 B
Go
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() (settings configuration.VPN) {
|
|
return l.state.GetSettings()
|
|
}
|
|
|
|
func (l *Loop) SetSettings(ctx context.Context,
|
|
vpn configuration.VPN) (
|
|
outcome string) {
|
|
return l.state.SetSettings(ctx, vpn)
|
|
}
|