From 8df5b3be5edd177ecbbc355fff976b6afba20962 Mon Sep 17 00:00:00 2001 From: Fabien Le Mentec Date: Mon, 1 Apr 2013 15:36:52 -0500 Subject: [PATCH] [ update ] bind gdb server on INADDR_ANY, as requested by thomas@popp.ws --- gdbserver/gdb-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/gdb-server.c b/gdbserver/gdb-server.c index 32f0d8b..ad7ce65 100644 --- a/gdbserver/gdb-server.c +++ b/gdbserver/gdb-server.c @@ -663,7 +663,7 @@ int serve(stlink_t *sl, st_state_t *st) { struct sockaddr_in serv_addr; memset(&serv_addr,0,sizeof(struct sockaddr_in)); serv_addr.sin_family = AF_INET; - serv_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); + serv_addr.sin_addr.s_addr = INADDR_ANY; serv_addr.sin_port = htons(st->listen_port); if(bind(sock, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) {