Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schroeder <[email protected]>
  • Loading branch information
milkpirate committed Mar 19, 2022
1 parent 3f5c81d commit 78bc954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion sslh-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 78bc954

Please sign in to comment.