mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-17 08:55:49 +08:00
Fix: invalid hostname ACL handling in UDPASSOC
This commit is contained in:
parent
7e0ee5bace
commit
3feb6df00d
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user