Skip to content
Snippets Groups Projects
Commit 34121d92 authored by Pea Nut's avatar Pea Nut
Browse files

Remove Bitmask.ReloadFirewall function, fixes #824

It's never called.
parent 4ee5fba6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment