Feature: OPENVPN_VERSION which can be 2.4 or 2.5

This commit is contained in:
Quentin McGaw (desktop)
2021-05-31 18:54:36 +00:00
parent 7002bf8e34
commit b829490aac
12 changed files with 71 additions and 23 deletions

View File

@@ -12,12 +12,13 @@ import (
)
type Configurator interface {
Version(ctx context.Context) (string, error)
Version24(ctx context.Context) (version string, err error)
Version25(ctx context.Context) (version string, err error)
WriteAuthFile(user, password string, puid, pgid int) error
CheckTUN() error
CreateTUN() error
Start(ctx context.Context) (stdoutLines, stderrLines chan string,
waitError chan error, err error)
Start(ctx context.Context, version string) (
stdoutLines, stderrLines chan string, waitError chan error, err error)
}
type configurator struct {