hlfw.ca

webbing

Download patch

ref: 2df8bdd3d9687dcac666bedab5ea1b41fe72b4a7
parent: 203ece8c2e6bc6cccd303473c30a31d74526976c
author: Michael Misch <michaelmisch1985@gmail.com>
date: Thu Nov 7 01:24:24 PST 2019

Listen on a non priviledged port for testing

--- a/client.go
+++ b/client.go
@@ -2,7 +2,6 @@
 
 import (
 	"log"
-	"net/http"
 
 	_ "github.com/olmaxmedical/olmax_go/forms"
 	_ "github.com/olmaxmedical/olmax_go/forms/doctor"
@@ -41,8 +40,5 @@
 		}
 		log.Fatal("Unable to continue due to plugin errors")
 	}
-	go func() {
-		http.ListenAndServe(":6060", nil)
-	}()
 	log.Fatal(router.Route(sessions))
 }
--- a/router/run.go
+++ b/router/run.go
@@ -31,7 +31,7 @@
 	mux.HandleFunc("/logout.html", d.logout)
 	mux.HandleFunc("/profile.html", d.profile)
 	mux.HandleFunc("/", d.normal)
-	return http.ListenAndServe(":80", mux)
+	return http.ListenAndServe(":8080", mux)
 }
 
 func (d *handle) activate(w http.ResponseWriter, r *http.Request) {