Просмотр исходного кода

* Fixed a bug where a bot would stop trying to connect to servers if using ipv6.

svn: 2089
Bryan Drewery 21 лет назад
Родитель
Сommit
be824cda65
2 измененных файлов с 3 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 2 0
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -120,6 +120,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Fixed a possible loop of -v+v with +voice/+v
 * Rewrote cmd_stick to use less code, as all the ban/exempt/invite code was redundant.
 * Added entry to help for ban-time in chanset: ban-time requires +dynamicbans
+* Fixed a bug where a bot would stop trying to connect to servers if using ipv6.
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 2 - 0
src/mod/server.mod/servmsg.c

@@ -1435,6 +1435,8 @@ static void server_dns_callback(int id, void *client_data, const char *host, cha
     }
     if (!ip) {
       putlog(LOG_SERV, "*", "Failed connect to %s (Could not DNS as IPV6)", host);
+      trying_server = 0;
+      lostdcc(idx);
       return;
     }
   } else