Feat: multiple OpenVPN ciphers for negotiation
- Perfect privacy to accept AES-256-CBC and AES-256-GCM - Cyberghost default cipher set to AES-256-GCM - `OPENVPN_CIPHER` accept comma separated cipher values - Use `ncp-ciphers` for OpenVPN 2.4
This commit is contained in:
@@ -30,8 +30,8 @@ func (p *PIA) BuildConf(connection models.Connection,
|
||||
certificate = constants.PIACertificateStrong
|
||||
}
|
||||
|
||||
if settings.Cipher == "" {
|
||||
settings.Cipher = defaultCipher
|
||||
if len(settings.Ciphers) == 0 {
|
||||
settings.Ciphers = []string{defaultCipher}
|
||||
}
|
||||
|
||||
if settings.Auth == "" {
|
||||
@@ -62,8 +62,8 @@ func (p *PIA) BuildConf(connection models.Connection,
|
||||
connection.OpenVPNRemoteLine(),
|
||||
}
|
||||
|
||||
if settings.Cipher != "" {
|
||||
lines = append(lines, utils.CipherLines(settings.Cipher, settings.Version)...)
|
||||
if len(settings.Ciphers) > 0 {
|
||||
lines = append(lines, utils.CipherLines(settings.Ciphers, settings.Version)...)
|
||||
}
|
||||
|
||||
if settings.Auth != "" {
|
||||
|
||||
Reference in New Issue
Block a user