2021-07-23 20:41:45 +00:00
|
|
|
package openvpn
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration"
|
2021-07-24 18:56:42 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/openvpn/state"
|
2021-07-23 20:41:45 +00:00
|
|
|
)
|
|
|
|
|
|
2021-07-24 18:56:42 +00:00
|
|
|
type SettingsGetterSetter = state.SettingsGetterSetter
|
|
|
|
|
|
2021-07-24 19:14:49 +00:00
|
|
|
func (l *Loop) GetSettings() (settings configuration.OpenVPN) {
|
2021-07-23 20:41:45 +00:00
|
|
|
return l.state.GetSettings()
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-24 19:14:49 +00:00
|
|
|
func (l *Loop) SetSettings(ctx context.Context, settings configuration.OpenVPN) (
|
2021-07-23 20:41:45 +00:00
|
|
|
outcome string) {
|
|
|
|
|
return l.state.SetSettings(ctx, settings)
|
|
|
|
|
}
|