Browse Source

capexample: listen on localhost.

Dmitry Chestnykh 10 years ago
parent
commit
e965f48e07
1 changed files with 1 additions and 1 deletions
  1. 1 1
      capexample/main.go

+ 1 - 1
capexample/main.go

@@ -46,7 +46,7 @@ func main() {
 	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)
 	}
 }