paulrosenzweig / hipstersnake

Multiplayer snake in go.
56 stars 4 forks source link

Get server port from -port flag #5

Closed benmanns closed 11 years ago

benmanns commented 11 years ago

This allows users to set the port to a non-privileged port, allowing them to run it without sudo or root.

Now, the server can be run with ./snake -port=$PORT.

paulrosenzweig commented 11 years ago

Cool. Thanks!