diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2020-01-31 21:15:40 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2020-01-31 21:22:54 +0100 |
commit | 0cd4ec5d99b6401efc04e86f15c3f28d7b967d69 (patch) | |
tree | 636deb80563115c072eab12ad17303113cd1ecd3 /dist-tools/shipper/README | |
parent | 168ba422791ddbdca0c4b447b2669a322ba1f7f9 (diff) | |
download | fetchmail-0cd4ec5d99b6401efc04e86f15c3f28d7b967d69.tar.gz fetchmail-0cd4ec5d99b6401efc04e86f15c3f28d7b967d69.tar.bz2 fetchmail-0cd4ec5d99b6401efc04e86f15c3f28d7b967d69.zip |
fetchmailconf.py: hostname qualification fixup
If socket.gethostname() returns a qualified name, don't look further,
to match fetchmail's behaviour - in case of an FQDN /etc/hostname
with broken /etc/hosts, this helps us survive.
Else, call socket.getfqdn() and not gethostbyaddr() in an attempt to qualify
the hostname.
Failing that, print an error message that tells the user to fix
/etc/hosts, which has this canonical format:
10.9.8.7 host.example.org host
on the assumption that that line and DNS might both be broken.
Gitlab, fixes #12 reported by Sergey Alirzaev - the prior attempt fixed
the wrong place (which also needed fixing).
Bump version to 1.63.
Diffstat (limited to 'dist-tools/shipper/README')
0 files changed, 0 insertions, 0 deletions