Skip to content
Snippets Groups Projects
Commit b829610c authored by jkito's avatar jkito :skull:
Browse files

Set transport to openvpn when provider is riseup

since obfs4 and kcp is disabled in the UI when provider
is riseup, transport needs to be set to openvpn to work
around config file with Obfs4 and KCP set to true  from
a previous version of the app
parent d8350ee8
No related branches found
No related tags found
1 merge request!239obfs4: stop obfs4 client and proxy in a go routine
......@@ -102,12 +102,21 @@ func InitializeBitmask(conf *config.Config) (Bitmask, error) {
}
func setTransport(b Bitmask, conf *config.Config) error {
if config.Provider == "riseup" {
log.Info().Msg("Using transport openvpn")
err := b.SetTransport("openvpn")
if err != nil {
return err
}
return nil
}
if conf.Obfs4 {
log.Info().Msg("Using transport obfs4")
err := b.SetTransport("obfs4")
if err != nil {
return err
}
return nil
}
if conf.KCP {
log.Info().Msg("Using transport kcp")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment