From 78bc954769ed1732dd3a79778f99ccbac22b01af Mon Sep 17 00:00:00 2001 From: Paul Schroeder Date: Sat, 19 Mar 2022 23:18:29 +0100 Subject: [PATCH] review Signed-off-by: Paul Schroeder --- common.c | 2 +- sslh-main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.c b/common.c index b3251d81..a9916d9d 100644 --- a/common.c +++ b/common.c @@ -319,7 +319,7 @@ int connect_addr(struct connection *cnx, int fd_from, connect_blocking blocking) res = getpeername(fd_from, from.ai_addr, &from.ai_addrlen); CHECK_RES_RETURN(res, "getpeername", res); - if (cfg.protocols.resolve_on_forward) { + if (cnx->proto->resolve_on_forward) { resolve_split_name(&(cnx->proto->saddr), cnx->proto->host, cnx->proto->port); } diff --git a/sslh-main.c b/sslh-main.c index 3fe16d98..05acba2a 100644 --- a/sslh-main.c +++ b/sslh-main.c @@ -126,7 +126,7 @@ static void config_protocols() struct sslhcfg_protocols_item* p = &(cfg.protocols[i]); if ( - !cfg.protocols.resolve_on_forward && + !p->resolve_on_forward && resolve_split_name(&(p->saddr), p->host, p->port) ) { print_message(msg_config_error, "cannot resolve %s:%s\n",