summaryrefslogtreecommitdiff
path: root/libexec/spamd
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2003-03-04 05:54:54 +0000
committerBob Beck <beck@cvs.openbsd.org>2003-03-04 05:54:54 +0000
commitb60ccdd16baae035c10114b04b0acb74ee44a8c3 (patch)
tree7e0eaa2daa7673b7f2c8feaad8467bbcf6850eea /libexec/spamd
parente12d5c0acb2645cefc9ab42c0eab4e553c532911 (diff)
ugh. default examples don't work since with an rdr to 127.0.0.1
you can't tell what socket you're talking to. avoid the whole issue and put the configuration on port + 1, todd@
Diffstat (limited to 'libexec/spamd')
-rw-r--r--libexec/spamd/spamd-setup.pl4
-rw-r--r--libexec/spamd/spamd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libexec/spamd/spamd-setup.pl b/libexec/spamd/spamd-setup.pl
index 4bc1332f4c8..939331f32c2 100644
--- a/libexec/spamd/spamd-setup.pl
+++ b/libexec/spamd/spamd-setup.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $OpenBSD: spamd-setup.pl,v 1.2 2003/03/03 14:49:59 deraadt Exp $
+# $OpenBSD: spamd-setup.pl,v 1.3 2003/03/04 05:54:53 beck Exp $
#
# Copyright (c) 2003 Bob Beck <beck@openbsd.org>. All rights reserved.
#
@@ -194,7 +194,7 @@ sub addblack () {
# tell spamd about it
$remote = '127.0.0.1';
- $port = 8025;
+ $port = 8026;
$iaddr = inet_aton($remote);
$paddr = sockaddr_in($port, $iaddr);
$proto = getprotobyname('tcp');
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c
index 36764c409c0..800c551e3dc 100644
--- a/libexec/spamd/spamd.c
+++ b/libexec/spamd/spamd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd.c,v 1.20 2003/03/03 19:35:17 deraadt Exp $ */
+/* $OpenBSD: spamd.c,v 1.21 2003/03/04 05:54:53 beck Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt. All rights reserved.
@@ -784,7 +784,7 @@ main(int argc, char *argv[])
lin.sin_len = sizeof(sin);
lin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
lin.sin_family = AF_INET;
- lin.sin_port = htons(port);
+ lin.sin_port = htons(port + 1);
if (bind(conflisten, (struct sockaddr *)&lin, sizeof lin) == -1)
err(1, "bind local");