diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-01-08 19:24:13 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2019-01-12 18:25:42 +0100 |
commit | 933ad2aeda754499753e91be05aa9f5556539d35 (patch) | |
tree | acb104e4a984e67fc007037ed55e3b6182ee8b91 /bitmaskd | |
parent | f274ec2beaf060cc8bfe4f5eb6f2ce3b5c6aa1f3 (diff) |
[feat] reload firewall with SIGUSR1
- Resolves: riseup_vpn#46
Diffstat (limited to 'bitmaskd')
-rw-r--r-- | bitmaskd/vpn.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitmaskd/vpn.go b/bitmaskd/vpn.go index aee5e8f..cfbe7df 100644 --- a/bitmaskd/vpn.go +++ b/bitmaskd/vpn.go @@ -32,6 +32,12 @@ func (b *Bitmask) StopVPN() error { return err } +// ReloadFirewall restarts the firewall +func (b *Bitmask) ReloadFirewall() error { + _, err := b.send("vpn", "fw_reload") + return err +} + // GetStatus returns the VPN status func (b *Bitmask) GetStatus() (string, error) { res, err := b.send("vpn", "status") |