chiark / gitweb /
svc/conntrack.in: Don't track the local IP address any more.
[tripe] / svc / conntrack.in
index a7431321619423310c288ce43bd35b958f98ae7a..78141e6fe79bd2dd20b5426b0f44cf82c7a380fc 100644 (file)
@@ -214,7 +214,6 @@ def localaddr(peer):
 
 _kick = T.Queue()
 def kickpeers():
-  lastip = {}
   while True:
     upness, reason = _kick.get()
 
@@ -280,14 +279,13 @@ def kickpeers():
           changes.append(_)
 
       ## Start the right one if necessary.
-      if want is not None and (not found or ip != lastip.get(g, None)):
+      if want is not None and not found:
         def _(want = want):
           try:
             SM.svcsubmit('connect', 'active', want)
           except T.TripeError, exc:
             SM.warn('conntrack', 'connect-failed', want, *exc.args)
         changes.append(_)
-      lastip[g] = ip
 
     ## Commit the changes.
     if changes: