diff options
Diffstat (limited to 'pkg/backend/webapi.go')
-rw-r--r-- | pkg/backend/webapi.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/backend/webapi.go b/pkg/backend/webapi.go index 3e4efd3..903112e 100644 --- a/pkg/backend/webapi.go +++ b/pkg/backend/webapi.go @@ -51,8 +51,7 @@ func webGatewaySet(w http.ResponseWriter, r *http.Request) { } gwLabel := r.FormValue("gw") fmt.Fprintf(w, "selected gateway: %s\n", gwLabel) - // FIXME catch error here, return it (error code) - useGateway(gwLabel) + ctx.bm.UseGateway(gwLabel) // TODO make sure we don't tear the fw down on reconnect... SwitchOff() // a little sleep is needed, though, because iptables takes some time |