jhalter / mobius

A Hotline server implemented in Golang for macOS, Linux, and Windows operating systems
MIT License
73 stars 8 forks source link

Add cmdline flag to specify network interface #117

Closed jhalter closed 5 months ago

jhalter commented 5 months ago

Add command line flag to specify which network interface to listen on. The net.Listen function wants this to be a string of an IP address on an interface of the host.

Example usage to listen on the interface with IP 169.254.87.101 bound and port 5600

--interface=169.254.87.101 --bind=5600

I'd maybe like to rename --bind now, but will avoid making a breaking change for now.

116