Content server: Fix regression that caused the port being advertised via BonJour to be incorrect if the user changed the port for the server. Fixes #1037912 (custom Content Server port not reflected in Bonjour)

This commit is contained in:
Kovid Goyal 2012-08-19 09:51:01 +05:30
parent 83c0da4c0f
commit 5dbbf145af

View File

@ -78,7 +78,10 @@ class BonJour(SimplePlugin): # {{{
SimplePlugin.__init__(self, engine)
self.port = port
self.prefix = prefix
self.mdns_services = [
@property
def mdns_services(self):
return [
('Books in calibre', '_stanza._tcp', self.port,
{'path':self.prefix+'/stanza'}),
('Books in calibre', '_calibre._tcp', self.port,