This commit is contained in:
maclomhair 2026-08-21 00:37:09 -07:00 committed by GitHub
commit 061fae3773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -893,10 +893,10 @@ int main(int argc, char *argv[])
}
}
o.target = argv[optind];
/* resolve hostname only if o.proxytype == NULL
/* resolve hostname only if o.proxytype == NULL or o.listen == 1
* targetss contains data already and you don't want remove them
*/
if( !o.proxytype
if( (!o.proxytype || o.listen)
&& (rc = resolve_multi(o.target, 0, targetaddrs, o.af)) != 0)
bye("Could not resolve hostname \"%s\": %s.", o.target, gai_strerror(rc));