From 67a68be2290b3af6e7d2897e52b3cd19d1f4450d Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 26 Mar 2021 15:48:58 +0100 Subject: Location selection more responsive --- pkg/vpn/openvpn.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/vpn/openvpn.go') diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go index e4d2781..2304dbd 100644 --- a/pkg/vpn/openvpn.go +++ b/pkg/vpn/openvpn.go @@ -239,6 +239,12 @@ func (b *Bitmask) UseGateway(label string) { b.bonafide.SetManualGateway(label) } +// UseAutomaticGateway sets the gateway to be selected automatically +// best gateway will be used +func (b *Bitmask) UseAutomaticGateway() { + b.bonafide.SetAutomaticGateway() +} + // UseTransport selects an obfuscation transport to use func (b *Bitmask) UseTransport(transport string) error { if transport != "obfs4" { -- cgit v1.2.3