Feature: OPENVPN_VERSION which can be 2.4 or 2.5
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
import (
|
||||
"github.com/qdm12/gluetun/internal/constants"
|
||||
)
|
||||
|
||||
func CipherLines(cipher, version string) (lines []string) {
|
||||
switch {
|
||||
case strings.HasPrefix(version, "2.4"):
|
||||
switch version {
|
||||
case constants.Openvpn24:
|
||||
return []string{"cipher " + cipher}
|
||||
default: // 2.5 and above
|
||||
return []string{
|
||||
|
||||
Reference in New Issue
Block a user