aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-09-13 06:33:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-09-13 06:33:22 +0000
commit8e9d4c515f4b57e1bee1d6ec3b89702986d7403a (patch)
tree7aa3f195930adfd86ff214c2693bcd848aa4e354 /fetchmail.c
parentd4b16eb2e94653b877e60f2c79d79310a84067a9 (diff)
downloadfetchmail-8e9d4c515f4b57e1bee1d6ec3b89702986d7403a.tar.gz
fetchmail-8e9d4c515f4b57e1bee1d6ec3b89702986d7403a.tar.bz2
fetchmail-8e9d4c515f4b57e1bee1d6ec3b89702986d7403a.zip
Always get fqdn for KPOP, whether or not DNS is enabled.
svn path=/trunk/; revision=2072
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fetchmail.c b/fetchmail.c
index a5256c02..41cff121 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -878,17 +878,8 @@ static int load_params(int argc, char **argv, int optind)
if ((ctl->server.protocol == P_ETRN
|| ctl->server.preauthenticate == A_KERBEROS_V4
|| ctl->server.preauthenticate == A_KERBEROS_V5))
- if (ctl->server.dns)
- {
- if (strcmp(fetchmailhost, "localhost") == 0)
+ if (strcmp(fetchmailhost, "localhost") == 0)
fetchmailhost = host_fqdn();
- }
- else
- {
- fprintf(stderr, "DNS is required for %s protocol",
- showproto(ctl->server.protocol));
- exit(PS_DNS);
- }
/*
* Make sure we have a nonempty host list to forward to.