mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add the port to the mDNS description string. Permits clients to disambiguate multiple instances.
This commit is contained in:
parent
60cd4ab85a
commit
8e580b926a
@ -115,9 +115,12 @@ def create_service(desc, type, port, properties, add_hostname, use_ip_address=No
|
||||
|
||||
if add_hostname:
|
||||
try:
|
||||
desc += ' (on %s)'%hostname
|
||||
desc += ' (on %s port %d)'%(hostname, port)
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
desc += ' (on %s)'%hostname
|
||||
except:
|
||||
pass
|
||||
|
||||
if use_ip_address:
|
||||
local_ip = use_ip_address
|
||||
|
Loading…
x
Reference in New Issue
Block a user