summaryrefslogtreecommitdiff
path: root/bitmask_go/launcher_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'bitmask_go/launcher_linux.go')
-rw-r--r--bitmask_go/launcher_linux.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitmask_go/launcher_linux.go b/bitmask_go/launcher_linux.go
index 6a1407c..12bd1cb 100644
--- a/bitmask_go/launcher_linux.go
+++ b/bitmask_go/launcher_linux.go
@@ -58,10 +58,12 @@ func (l *launcher) openvpnStop() error {
return runBitmaskRoot("openvpn", "stop")
}
-func (l *launcher) firewallStart(gateways []string) error {
+func (l *launcher) firewallStart(gateways []gateway) error {
log.Println("firewall start")
arg := []string{"firewall", "start"}
- arg = append(arg, gateways...)
+ for _, gw := range gateways {
+ arg = append(arg, gw.IPAddress)
+ }
return runBitmaskRoot(arg...)
}