COUCHDB-1512 - Validate bind address
authorRobert Newson <rnewson@apache.org>
Mon, 30 Jul 2012 11:46:35 +0000 (12:46 +0100)
committerRobert Newson <rnewson@apache.org>
Mon, 30 Jul 2012 11:46:35 +0000 (12:46 +0100)
commit09ead8a070050141d8661500fc86e37e1e6a6c9a
tree6fc4099f142c9695733bdd8f37f5faec691c6df7
parent0e9c5a5afbb35f6fdaa059fa56c6d5ccb87baec9
COUCHDB-1512 - Validate bind address

This patch validate the bind_address value before attempting to bind
the mochiweb socket, giving an 'invalid_bind_address' error. This
should help users who have specified a hostname or made a typo as the
original error was less helpful.

Fix as suggested by Dave Cottlehuber.
src/couchdb/couch_httpd.erl