From: pk910 Date: Sun, 17 Jul 2011 04:49:22 +0000 (+0200) Subject: check AutoHide setting on LOC Authentication X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=5b5229875555f54a7a73f3b6fe6d8b67b8406e40 check AutoHide setting on LOC Authentication --- diff --git a/src/proto-p10.c b/src/proto-p10.c index 03a0fa0..55d1b94 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -1773,7 +1773,9 @@ static CMD_FUNC(cmd_relay) } else { devnull[0] = 0; } - if(getfakehost(argv[4])) { + if(!HANDLE_FLAGGED(hi, AUTOHIDE)) { + sprintf(tmp,"%s LA %s 0 %s\n",argv[3],hi->handle,devnull); + } else if(getfakehost(argv[4])) { sprintf(tmp,"%s LA %s %s %s\n",argv[3],hi->handle,getfakehost(argv[4]),devnull); } else { extern const char *hidden_host_suffix;