owenashurst / agar.io-clone

Agar.io clone written with Socket.IO and HTML5 canvas
MIT License
2.88k stars 1.12k forks source link

Update server.js #474

Closed vikramdurai closed 7 years ago

vikramdurai commented 7 years ago

A small change to make it that it outputs "localhost:{port}" or "127.0.0.1:{port}"

   

vikramdurai commented 7 years ago

:shipit:

CoderJoeW commented 7 years ago

:shipit:

CoderJoeW commented 7 years ago

:shipit:

CoderJoeW commented 7 years ago

:shipit:

igorantun commented 7 years ago

:shipit:

abalabahaha commented 7 years ago

This is really misleading and shouldn't have been merged at all. If an IP address is passed to http.listen(), node will listen on that IP, not localhost. Otherwise, node would listen on 0.0.0.0 (or :: on IPv6), not 127.0.0.1.