Skip to content

Commit

Permalink
Always use local network on win32
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Oct 5, 2023
1 parent 194d4a3 commit ee44192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int socket_start(int socket_port, int feedback_port, int buffer_size)
struct sockaddr_in serv_addr;
memset(&serv_addr, 0, sizeof(serv_addr));
serv_addr.sin_family = AF_INET;
#ifdef __MOD_DEVICES__
#if defined(__MOD_DEVICES__) || defined(_WIN32)
serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
#else
serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
Expand Down

0 comments on commit ee44192

Please sign in to comment.