This commit is contained in:
2
main.go
2
main.go
@@ -48,6 +48,7 @@ func passwordHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// new help handler
|
// new help handler
|
||||||
func helpHandler(w http.ResponseWriter, r *http.Request) {
|
func helpHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Printf("helpHandler called from %s\n", r.RemoteAddr())
|
||||||
helpHTML := `
|
helpHTML := `
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
@@ -136,6 +137,7 @@ func helpHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
|
|
||||||
func webHandler(w http.ResponseWriter, r *http.Request) {
|
func webHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Printf("webHandler called from %s\n", r.RemoteAddr())
|
||||||
password := generatePassword()
|
password := generatePassword()
|
||||||
html := fmt.Sprintf(
|
html := fmt.Sprintf(
|
||||||
`<DOCTYPE html>
|
`<DOCTYPE html>
|
||||||
|
|||||||
Reference in New Issue
Block a user