diff options
author | 2003-03-04 05:54:53 +0000 | |
---|---|---|
committer | 2003-03-04 05:54:53 +0000 | |
commit | 4bda8f20cee95b19a6b1ca2b0f6c4a66dd9b2ce1 (patch) | |
tree | 1ed94563553cc178116cbae8b21f25aee79e854f /libexec/spamd/spamd.c | |
parent | Interim JPEG size support; PNG and other lesser image formats added. (diff) | |
download | wireguard-openbsd-4bda8f20cee95b19a6b1ca2b0f6c4a66dd9b2ce1.tar.xz wireguard-openbsd-4bda8f20cee95b19a6b1ca2b0f6c4a66dd9b2ce1.zip |
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"); |