kopia lustrzana https://github.com/stlink-org/stlink
[ update ] bind gdb server on INADDR_ANY, as requested by thomas@popp.ws
rodzic
d1635e8013
commit
8df5b3be5e
|
@ -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) {
|
||||||
|
|
Ładowanie…
Reference in New Issue