summaryrefslogtreecommitdiff
path: root/standalone/launcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/launcher.go')
-rw-r--r--standalone/launcher.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/standalone/launcher.go b/standalone/launcher.go
index 03178c5..0a95dd1 100644
--- a/standalone/launcher.go
+++ b/standalone/launcher.go
@@ -68,6 +68,16 @@ func (l *launcher) firewallStop() error {
return l.send("/firewall/stop", nil)
}
+func (l *launcher) firewallIsUp() bool {
+ res, err := http.Post(helperAddr+"/firewall/isup", "", nil)
+ if err != nil {
+ return false
+ }
+ defer res.Body.Close()
+
+ return res.StatusCode == http.StatusOK
+}
+
func (l *launcher) send(path string, body []byte) error {
var reader io.Reader
if body != nil {