mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
fail portmapping if name can not be resolved
This commit is contained in:
parent
5ee573dc7f
commit
53521393e9
@ -16,7 +16,7 @@
|
|||||||
void * tcppmchild(struct clientparam* param) {
|
void * tcppmchild(struct clientparam* param) {
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if(!param->hostname)parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport));
|
if(!param->hostname && parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport))) RETURN(100);
|
||||||
param->operation = CONNECT;
|
param->operation = CONNECT;
|
||||||
res = (*param->srv->authfunc)(param);
|
res = (*param->srv->authfunc)(param);
|
||||||
if(res) {RETURN(res);}
|
if(res) {RETURN(res);}
|
||||||
|
@ -38,7 +38,7 @@ void * udppmchild(struct clientparam* param) {
|
|||||||
struct pollfd fds[256];
|
struct pollfd fds[256];
|
||||||
|
|
||||||
|
|
||||||
if(!param->hostname)parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport));
|
if(!param->hostname && parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport))) RETURN(100);
|
||||||
if (SAISNULL(¶m->req)) {
|
if (SAISNULL(¶m->req)) {
|
||||||
param->srv->fds.events = POLLIN;
|
param->srv->fds.events = POLLIN;
|
||||||
RETURN (100);
|
RETURN (100);
|
||||||
|
Loading…
Reference in New Issue
Block a user