diff --git a/pkg/bitmask/interface.go b/pkg/bitmask/interface.go index 8abcd72049688e0c4df7779cd6780ce4914e9402..b3ba2d9f151ae28f02f5d6f2beeaa32c4e56c2d9 100644 --- a/pkg/bitmask/interface.go +++ b/pkg/bitmask/interface.go @@ -28,7 +28,6 @@ type Bitmask interface { CanStartVPN() bool StopVPN() error Reconnect() error - ReloadFirewall() error GetStatus() (string, error) VPNCheck() (helpers bool, priviledge bool, err error) GetLocationQualityMap(protocol string) map[string]float64 diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go index c8c60241d41d230d89a60147a09af9cb917615d1..7d64e20b26136848e20ebf6826b39d7917e0007c 100644 --- a/pkg/vpn/openvpn.go +++ b/pkg/vpn/openvpn.go @@ -474,28 +474,6 @@ func (b *Bitmask) Reconnect() error { return b.startOpenVPN(ctx) } -// ReloadFirewall restarts the firewall -func (b *Bitmask) ReloadFirewall() error { - err := b.launch.FirewallStop() - if err != nil { - return err - } - - status, err := b.GetStatus() - if err != nil { - return err - } - - if status != Off { - gateways, err := b.api.GetAllGateways("any") - if err != nil { - return err - } - return b.launch.FirewallStart(gateways) - } - return nil -} - // GetStatus returns the VPN status func (b *Bitmask) GetStatus() (string, error) { status := Off