Commits

Miki Tebeka committed 1d0c627

Right place for port

Comments (0)

Files changed (1)

 func main() {
 	nrsc.Handle("/static/")
 	http.HandleFunc("/", indexHandler)
-	if err := http.ListenAndServe(":9888", nil); err != nil {
-		fmt.Fprintf(os.Stderr, "error: %d\n", err)
+	if err := http.ListenAndServe(":%d", nil); err != nil {
+		fmt.Fprintf(os.Stderr, "error: %%s\n", err)
 		os.Exit(1)
 	}
 }