all repos — captcha @ e965f48e07b0fe1f10061c0eade5075266cd6cb0

Go package captcha implements generation and verification of image and audio CAPTCHAs.

capexample: listen on localhost.
Dmitry Chestnykh dmitry@codingrobots.com
Tue, 21 Apr 2015 15:31:18 +0200
commit

e965f48e07b0fe1f10061c0eade5075266cd6cb0

parent

3eb958d77bb2098ef113dcdba86035a81048fff5

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M capexample/main.gocapexample/main.go

@@ -46,7 +46,7 @@ http.HandleFunc("/", showFormHandler)

http.HandleFunc("/process", processFormHandler) http.Handle("/captcha/", captcha.Server(captcha.StdWidth, captcha.StdHeight)) fmt.Println("Server is at localhost:8666") - if err := http.ListenAndServe(":8666", nil); err != nil { + if err := http.ListenAndServe("localhost:8666", nil); err != nil { log.Fatal(err) } }