diff options
| author | Jeff Carr <[email protected]> | 2024-10-14 15:26:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-14 15:26:11 -0500 |
| commit | 5b47c44fb57a2b99661dba0f6a620c690703b58f (patch) | |
| tree | b27ac5ffc278913e442ee908aef486d969debebb | |
| parent | e19465c39f035670f4c368bcee91f6c2135022b4 (diff) | |
a 'start' event
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | http.go | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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: @@ -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 |
