aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-20 15:52:48 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-20 15:52:48 +0000
commitc8ecb908dde9760ac2ff55f73ffd02f1a0046f59 (patch)
tree838bf5742ee57de487e1afb0154cfd40cc96582d /fetchmail.c
parent85ea804517dc39280113a281a71397fdefe59d3c (diff)
downloadfetchmail-c8ecb908dde9760ac2ff55f73ffd02f1a0046f59.tar.gz
fetchmail-c8ecb908dde9760ac2ff55f73ffd02f1a0046f59.tar.bz2
fetchmail-c8ecb908dde9760ac2ff55f73ffd02f1a0046f59.zip
Added socks library support.
svn path=/trunk/; revision=2189
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index f06f6f26..95848491 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -195,6 +195,11 @@ int main (int argc, char **argv)
#if NET_SECURITY
printf("+NETSEC");
#endif /* NET_SECURITY */
+#ifdef HAVE_SOCKS
+ #if HAVE_SOCKS
+ printf("+SOCKS");
+ #endif
+#endif /* HAVE_SOCKS */
putchar('\n');
/* this is an attempt to help remote debugging */
@@ -415,6 +420,17 @@ int main (int argc, char **argv)
}
}
+/* Time to initiate the SOCKS library (this is not mandatory: it just
+ registers the correct application name for logging purpose. If you
+ have some problem, comment these lines). */
+#ifdef HAVE_SOCKS
+ #if HAVE_SOCKS
+/* Mmmh... I don't like hardcoded application names,
+ but "fetchmail" is everywhere... */
+ SOCKSinit("fetchmail");
+ #endif
+#endif /* HAVE_SOCKS */
+
/*
* Maybe time to go to demon mode...
*/