changeset 24:dedb1841cd15

make requests unique by fixed_ip, not by floating_ip
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Tue, 12 Feb 2013 16:24:21 +0100
parents 50bbb36cfbec
children 513c5993bc76
files srxproxy.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/srxproxy.py	Tue Feb 12 16:15:54 2013 +0100
+++ b/srxproxy.py	Tue Feb 12 16:24:21 2013 +0100
@@ -130,8 +130,8 @@
         return
     ips = [
         (context, floating_ip, fixed_ip, host, instance_id)
-        for floating_ip, (context, fixed_ip, host, instance_id) in {
-            floating_ip: (context, fixed_ip, host, instance_id)
+        for fixed_ip, (context, floating_ip, host, instance_id) in {
+            fixed_ip: (context, floating_ip, host, instance_id)
             for context, floating_ip, fixed_ip, host, instance_id in ips
         }.iteritems()
     ]