capexample: listen on localhost.
Dmitry Chestnykh dmitry@codingrobots.com
Tue, 21 Apr 2015 15:31:18 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
capexample/main.go
→
capexample/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) } }