service-discovery-applet shows redundant services when multiple NICs active
Bug #306006 reported by
Noel J. Bergman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
service-discovery-applet (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: service-
I have two network adapters, eth0 and wlan0. They are present on the same subnet and see the same published services. Therefore, avahi-browse shows the services twice, e.g.,
+ wlan0 IPv4 <host> SSH Remote Terminal local
+ eth0 IPv4 <host> SSH Remote Terminal local
The service-
To post a comment you must log in.
Looking at the code, and I am neither a python expert nor a gtk expert, it appears that a suitable change can be made around line 320 in service- discovery- applet.
The code there is:
menuitem = gtk.MenuItem(name, False) types[type] .add(menuitem) services[ (interface, protocol, name, type, domain)] = menuitem connect( "activate" , self.menuitem_ response, interface, protocol, name, type, domain) show_all( )
self.zc_
self.zc_
menuitem.
menuitem.
When we actually connect to a service, the code is:
self. plugin. plugins[ type][0] .connect( self.use_ host_names, name, type, host, address, port, txts)
with no use of the interface.
It seems to me that we should either modify the menu building code to filter out duplicates, or else put the interface name in the menu if someone thinks it will be significant (which it clearly is not at this time).