server: support binding to arbitrary interfaces
authorSteven Stallion <stallion@squareup.com>
Mon, 11 Jul 2016 19:18:54 +0000 (14:18 -0500)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 17 Jul 2016 19:55:11 +0000 (20:55 +0100)
commit800fe0b8855165d48ae227fd07657e1fa2c1b2d4
treeb972930f1b88c967c7b731b2cf37a3e63554bea9
parent12e4a2a220de4ddca5a429432b089471ee9bc28a
server: support binding to arbitrary interfaces

Some installations of OpenOCD are used in restricted environments that
do not permit binding to public interfaces.

This patch does not affect the default behavior to listen on all
interfaces, however it does give the option to restrict services by way
of the bindto command.

Change-Id: Id51bd64b376a8c62dd47b08b4d834872925e6af2
Signed-off-by: Steven Stallion <stallion@squareup.com>
Reviewed-on: http://openocd.zylin.com/3534
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
doc/openocd.texi
src/server/server.c