From 5dbbf145af7fd508afb987978ff2bec8b44ad2b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Aug 2012 09:51:01 +0530 Subject: [PATCH] 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) --- src/calibre/library/server/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/server/base.py b/src/calibre/library/server/base.py index d912165734..3554268c3b 100644 --- a/src/calibre/library/server/base.py +++ b/src/calibre/library/server/base.py @@ -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,