check AutoHide setting on LOC Authentication
authorpk910 <philipp@zoelle1.de>
Sun, 17 Jul 2011 04:49:22 +0000 (06:49 +0200)
committerpk910 <philipp@zoelle1.de>
Sun, 17 Jul 2011 04:49:22 +0000 (06:49 +0200)
src/proto-p10.c

index 03a0fa0de76bfa3febbcd4da1671d9d78b52b4be..55d1b941432cf6e32da5fa19308c42e5cd3b94d4 100644 (file)
@@ -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;