mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 10:53:02 +02:00
...
This commit is contained in:
parent
a6e8d0eb71
commit
5eb99a6f5a
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ def __init__(self, host='', port=0, local_hostname=None,
|
|||
# if that can't be calculated, that we should use a domain literal
|
||||
# instead (essentially an encoded IP address like [A.B.C.D]).
|
||||
fqdn = socket.getfqdn()
|
||||
if '.' in fqdn and fqdn != '.':
|
||||
if '.' in fqdn and fqdn != '.': # Changed by Kovid
|
||||
self.local_hostname = fqdn
|
||||
else:
|
||||
# We can't find an fqdn hostname, so use a domain literal
|
||||
|
|
|
|||
Loading…
Reference in a new issue