2021-05-11 17:10:51 +00:00
|
|
|
package windscribe
|
|
|
|
|
|
|
|
|
|
import (
|
2022-01-06 06:40:23 -05:00
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
2021-05-11 17:10:51 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/constants"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
|
|
|
)
|
|
|
|
|
|
2021-08-19 14:09:41 +00:00
|
|
|
func (w *Windscribe) BuildConf(connection models.Connection,
|
2022-04-25 07:57:45 +00:00
|
|
|
settings settings.OpenVPN) (lines []string) {
|
|
|
|
|
providerSettings := utils.OpenVPNProviderSettings{
|
|
|
|
|
RemoteCertTLS: true,
|
|
|
|
|
AuthUserPass: true,
|
|
|
|
|
Ciphers: []string{
|
2021-10-05 20:36:23 +00:00
|
|
|
constants.AES256gcm,
|
|
|
|
|
constants.AES256cbc,
|
|
|
|
|
constants.AES128gcm,
|
2022-04-25 07:57:45 +00:00
|
|
|
},
|
|
|
|
|
Auth: constants.SHA512,
|
|
|
|
|
Ping: 10, //nolint:gomnd
|
|
|
|
|
VerifyX509Type: "name",
|
|
|
|
|
KeyDirection: "1",
|
|
|
|
|
RenegDisabled: true,
|
|
|
|
|
CA: constants.WindscribeCA,
|
|
|
|
|
TLSAuth: constants.WindscribeTLSAuth,
|
2021-05-11 17:10:51 +00:00
|
|
|
}
|
2022-04-25 07:57:45 +00:00
|
|
|
return utils.OpenVPNConfig(providerSettings, connection, settings)
|
2021-05-11 17:10:51 +00:00
|
|
|
}
|