Do not bind on remote address in GTP

This allows to communicate with multiple remote hosts. A further
improvement would be to refactor this piece of code into a function and
call it only when necessary, i.e., when we know the remote host, or want
to add one to a list of hosts.
This commit is contained in:
Robert Schmidt
2023-10-27 09:07:51 +02:00
parent 0a6998db4b
commit 2136ceec0d
+1 -1
View File
@@ -510,7 +510,7 @@ static int udpServerSocket(openAddr_s addr) {
freeaddrinfo(servinfo); // all done with this structure
if (strlen(addr.destinationHost)>1) {
if (false) {
struct addrinfo hints;
memset(&hints,0,sizeof(hints));
hints.ai_family=AF_UNSPEC;