From 3feb6df00d08f70f7e979e2ebdf65b217d57d73f Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Thu, 1 Oct 2026 16:57:36 +0300 Subject: [PATCH] Fix: invalid hostname ACL handling in UDPASSOC --- src/udpsockmap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/udpsockmap.c b/src/udpsockmap.c index 3d79f0a..63c9b73 100644 --- a/src/udpsockmap.c +++ b/src/udpsockmap.c @@ -289,6 +289,12 @@ int udpsockmap(struct clientparam *param, int timeo) } default: return 997; } + /* As for TCP requests, a literal address is the host name, + otherwise an ACL with host names only matches any address */ + if (!dstname) { + myinet_ntop(*SAFAMILY(&dst), SAADDR(&dst), dstnamebuf, sizeof(dstnamebuf)); + dstname = dstnamebuf; + } memcpy(SAPORT(&dst), base + i, 2); i += 2;