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
@ -114,6 +114,9 @@ def create_service(desc, type, port, properties, add_hostname, use_ip_address=No
|
|||||||
hostname = 'Unknown'
|
hostname = 'Unknown'
|
||||||
|
|
||||||
if add_hostname:
|
if add_hostname:
|
||||||
|
try:
|
||||||
|
desc += ' (on %s port %d)'%(hostname, port)
|
||||||
|
except:
|
||||||
try:
|
try:
|
||||||
desc += ' (on %s)'%hostname
|
desc += ' (on %s)'%hostname
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user