diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2003-03-04 05:54:54 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2003-03-04 05:54:54 +0000 |
commit | b60ccdd16baae035c10114b04b0acb74ee44a8c3 (patch) | |
tree | 7e0eaa2daa7673b7f2c8feaad8467bbcf6850eea /libexec/spamd/spamd.c | |
parent | e12d5c0acb2645cefc9ab42c0eab4e553c532911 (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/spamd.c')
-rw-r--r-- | libexec/spamd/spamd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |