mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +01:00
Use 'localhost' explicitly to avoid warnings on Windows
This commit is contained in:
parent
ab269c621b
commit
1361383ef4
@ -40,5 +40,5 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
http.Handle("/", http.FileServer(http.Dir(rootPath)))
|
http.Handle("/", http.FileServer(http.Dir(rootPath)))
|
||||||
fmt.Printf("http://localhost:%d/\n", *port)
|
fmt.Printf("http://localhost:%d/\n", *port)
|
||||||
log.Fatal(http.ListenAndServe(":"+strconv.Itoa(*port), nil))
|
log.Fatal(http.ListenAndServe("localhost:"+strconv.Itoa(*port), nil))
|
||||||
}
|
}
|
||||||
|
@ -162,5 +162,5 @@ func main() {
|
|||||||
http.HandleFunc("/main.js.map", serveMainJSMap)
|
http.HandleFunc("/main.js.map", serveMainJSMap)
|
||||||
http.HandleFunc("/", serveFileHandle)
|
http.HandleFunc("/", serveFileHandle)
|
||||||
fmt.Printf("http://localhost:%d/\n", *port)
|
fmt.Printf("http://localhost:%d/\n", *port)
|
||||||
log.Fatal(http.ListenAndServe(":"+strconv.Itoa(*port), nil))
|
log.Fatal(http.ListenAndServe("localhost:"+strconv.Itoa(*port), nil))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user