-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alkis Georgopoulos wrote:
> Στις 20-08-2009, ημέρα Πεμ, και ώρα 08:17 -0400, ο/η Stéphane Graber
> έγραψε:
>> Hi Alkis, are lines exactly duplicates ?
>> If so, the following diff should work:
>
> No, they aren't; the IP of eth0 is different than that of eth1. E.g.
> hosts[0]= ['10.160.31.10:5900', 1, 'alkis']
> hosts[1]= ['10.160.31.10:10131', 1, 'alkis']
> hosts[2]= ['192.168.0.1:5900', 1, 'alkis']
> hosts[3]= ['192.168.0.1:10131', 1, 'alkis']
>
> Additionally, set(hosts) complains:
> TypeError: unhashable type: 'list'
Hi,
Could you try the attached patch ?
The issue with your change is that it will only work for one NIC, so if
for example you have regular desktops on both NICs, you will only be
able to see the ones on connected on the first NIC.
My patch simply ensure that all ICA running on localhost will appear as
127.0.0.1 and that there are no duplicate in the final list. That should
fix your issue.
- --
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqOBY4ACgkQjxyfqkjBhuyfzgCcD+71P6EwmEIu1TtgM1iy5O+n
HzsAn1ml8w8kIejU8rc+2qd7rsQZhDL1
=RiIE
-----END PGP SIGNATURE-----
=== modified file 'debian/italc-launcher'
--- debian/italc-launcher 2009-08-19 06:17:13 +0000
+++ debian/italc-launcher 2009-08-21 02:23:42 +0000
@@ -87,6 +87,7 @@
return hosts
def getAvahiHosts():
+ global local_addr
hosts=[]
if not os.path.exists("/usr/bin/avahi-browse"):
return hosts
@@ -98,7 +99,11 @@
param=line.split(";")
comment=re.findall('"(.*)" "(.*)" "(.*)" "(.*)"\n',param[9])[0]
if (comment[1] == md5_1 or comment[2] == md5_2 or comment[3]
== md5_3):
- hosts.append([param[7]+":"+param[8],1,comment[0]])
+ if param[7] in local_addr:
+ param[7]="127.0.0.1"
+ host=[param[7]+":"+param[8],1,comment[0]]
+ if host not in hosts:
+ hosts.append(host)
except:
print 'Ignoring a client, invalid data received'
return hosts
--
edubuntu-devel mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel