From 2136ceec0d3ea5b605df42059bc9602c94018297 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Fri, 29 Sep 2023 16:56:31 +0200 Subject: [PATCH] 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. --- openair3/ocp-gtpu/gtp_itf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair3/ocp-gtpu/gtp_itf.cpp b/openair3/ocp-gtpu/gtp_itf.cpp index 4367222404..d542dd4b30 100644 --- a/openair3/ocp-gtpu/gtp_itf.cpp +++ b/openair3/ocp-gtpu/gtp_itf.cpp @@ -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;