mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
fb2bb90d3a
@ -114,6 +114,9 @@ def create_service(desc, type, port, properties, add_hostname, use_ip_address=No
|
||||
hostname = 'Unknown'
|
||||
|
||||
if add_hostname:
|
||||
try:
|
||||
desc += ' (on %s port %d)'%(hostname, port)
|
||||
except:
|
||||
try:
|
||||
desc += ' (on %s)'%hostname
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user