[ update ] bind gdb server on INADDR_ANY, as requested by thomas@popp.ws

pull/140/head
Fabien Le Mentec 2013-04-01 15:36:52 -05:00
rodzic d1635e8013
commit 8df5b3be5e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -663,7 +663,7 @@ int serve(stlink_t *sl, st_state_t *st) {
struct sockaddr_in serv_addr; struct sockaddr_in serv_addr;
memset(&serv_addr,0,sizeof(struct sockaddr_in)); memset(&serv_addr,0,sizeof(struct sockaddr_in));
serv_addr.sin_family = AF_INET; 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); serv_addr.sin_port = htons(st->listen_port);
if(bind(sock, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) { if(bind(sock, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) {