when creating a socket, spin over a number of low-numbered ports
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 12 Sep 2011 12:14:26 +0000 (22:14 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 12 Sep 2011 12:14:26 +0000 (22:14 +1000)
commit07fd0cbc65e076c6ca4200a000c49a1086812f64
treef1e6f255c905a033c5f6cb81b6ce66aede6b226e
parent18c27b73ff153f3fb49ec806c956d3d3055c8678
when creating a socket, spin over a number of low-numbered ports
and try to bind to a system port in case the user is root or the
binary has the CAP_NET_BIND_SERVICE capability

this removes the need to use 'insecure' on the server
lib/socket.c