mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-03 07:44:24 +01:00
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:
parent
83c0da4c0f
commit
5dbbf145af
1 changed files with 4 additions and 1 deletions
|
|
@ -78,7 +78,10 @@ def __init__(self, engine, port=8080, prefix=''):
|
|||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue