summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--http.go6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d8fded..91dbf5b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE=
all:
GO111MODULE=off go build -v -x -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}"
./virtigod --version
- sudo ./virtigod
+ # sudo ./virtigod
# this is for release builds using the go.mod files
release-build:
diff --git a/http.go b/http.go
index 141082c..85bdbb0 100644
--- a/http.go
+++ b/http.go
@@ -46,6 +46,12 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
+ if tmp == "/start" {
+ start := r.URL.Query().Get("start")
+ fmt.Fprint(w,"Handling URL:", tmp, "should start here: droplet", start)
+ return
+ }
+
if tmp == "/favicon.ico" {
writeFile(w, "ipv6.png")
return