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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user