OpenParsec / openparsec

GNU General Public License v2.0
52 stars 8 forks source link

Make server bind to selected network interface(s) #12

Open uberlinuxguy opened 11 years ago

uberlinuxguy commented 11 years ago

Currently the server only binds to the first or last interface it sees. Needs to have a config option setup for it and keep track of a list of interfaces internally.

uberlinuxguy commented 11 years ago

Changed 3 weeks ago by uberlinuxguy so the 0.0.0.0 bind trick didn't work so I fixed their code and added: netiface_command ::= 'sv.network.iface' iface_spec ::= 'interface' In Master Mode, since Master Server doesn't parse con files and probably never will, this is entered into the console after boot. Upon boot, the server AND master should now give you a list of ifaces and ips. This is currently ONLY in my uberlinuxguy/ branch. Will mark as fixed when it moves to trunk

uberlinuxguy commented 11 years ago

Per CrazySpence, there is an issue with the code on Mac, the ioctl() call appears to not work the same or I'm not traversing the array of interfaces right. Will investigate further when I get access to a Mac.

uberlinuxguy commented 10 years ago

bumping this to 1.0 for now. Seems to be a bit tricky and I need a Mac to test this before I implement it.