Pārlūkot izejas kodu

Merge branch 'rebind-ip-fixes' into next

* rebind-ip-fixes:
  * Update docs
  * Fix DNS/Server sockets getting stuck when its socket was closed via fatal()
Bryan Drewery 16 gadi atpakaļ
vecāks
revīzija
19cb9c6559
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 1 0
      doc/UPDATES
  2. 5 0
      src/dccutil.c

+ 1 - 0
doc/UPDATES

@@ -2,6 +2,7 @@
 * Properly honor exemptions when kicking matched RBL clients
 * Properly honor exemptions when kicking matched RBL clients
 * Fixed parsing errors in .chanset
 * Fixed parsing errors in .chanset
 * Only global +n can use .chanset * now
 * Only global +n can use .chanset * now
+* Fix problems with changing IP
 
 
 1.3 - http://wraith.botpack.net/milestone/1.3
 1.3 - http://wraith.botpack.net/milestone/1.3
 * Binary / shell / startup changes
 * Binary / shell / startup changes

+ 5 - 0
src/dccutil.c

@@ -590,6 +590,11 @@ lostdcc(int n)
 
 
   if (n == uplink_idx)
   if (n == uplink_idx)
     uplink_idx = -1;
     uplink_idx = -1;
+  else if (n == dns_idx)
+    dns_idx = -1;
+  else if (n == servidx)
+    servidx = -1;
+
 
 
   if (dcc[n].type && dcc[n].type->kill)
   if (dcc[n].type && dcc[n].type->kill)
     dcc[n].type->kill(n, dcc[n].u.other);
     dcc[n].type->kill(n, dcc[n].u.other);