summaryrefslogtreecommitdiff
path: root/helper/linux.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-07-09 14:52:03 +0200
committerRuben Pollan <meskio@sindominio.net>2018-07-09 14:52:03 +0200
commitad175ba3a88b0add9688f402beefd6fdb9d7edde (patch)
treea9527e1b83a2f140a0b8abe207a5e0467cec960f /helper/linux.go
parenteb9fd2fda54a17ddcabc596b0b6555ab4e1df205 (diff)
[feat] provide gateways to the firewall
- Resolves: #10
Diffstat (limited to 'helper/linux.go')
-rw-r--r--helper/linux.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/helper/linux.go b/helper/linux.go
index 5b167fb..ba43d82 100644
--- a/helper/linux.go
+++ b/helper/linux.go
@@ -18,7 +18,6 @@ package main
import (
"log"
- "net/http"
"os"
"os/exec"
)
@@ -40,12 +39,12 @@ func kill(cmd *exec.Cmd) error {
return cmd.Process.Signal(os.Interrupt)
}
-type firewallT struct{}
-
-func (firewall *firewallT) start(w http.ResponseWriter, r *http.Request) {
+func firewallStart(gateways []string) error {
log.Println("Start firewall: do nothing, not implemented")
+ return nil
}
-func (firewall *firewallT) stop(w http.ResponseWriter, r *http.Request) {
+func firewallStop() error {
log.Println("Stop firewall: do nothing, not implemented")
+ return nil
}