summaryrefslogtreecommitdiff
path: root/bitmaskd
diff options
context:
space:
mode:
Diffstat (limited to 'bitmaskd')
-rw-r--r--bitmaskd/vpn.go6
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")