From e0f15a31b74e8bd4f5c032f336d5da8e5580b8c0 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Tue, 12 Sep 2023 21:39:51 +0200 Subject: [PATCH] resolve name at connection time for UDP too --- udp-listener.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/udp-listener.c b/udp-listener.c index a941aec..570e480 100644 --- a/udp-listener.c +++ b/udp-listener.c @@ -225,6 +225,11 @@ static void mark_active(struct connection* cnx) /* Creates a new non-blocking socket */ static int nonblocking_socket(struct sslhcfg_protocols_item* proto) { + if (proto->resolve_on_forward) { + resolve_split_name(&(proto->saddr), proto->host, + proto->port); + } + int out = socket(proto->saddr->ai_family, SOCK_DGRAM, 0); int res = set_nonblock(out); if (res == -1) {