mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +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() {
|
||||
http.Handle("/", http.FileServer(http.Dir(rootPath)))
|
||||
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("/", serveFileHandle)
|
||||
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