summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-12-09 09:18:45 +1100
committerDamien Miller <djm@mindrot.org>2015-12-09 09:18:45 +1100
commitd86a3ba7af160c13496102aed861ae48a4297072 (patch)
tree548bd8ed710bd21ae9ddbb3ad37c8c4d10fe29aa /misc.c
parentda98c11d03d819a15429d8fff9688acd7505439f (diff)
Don't set IPV6_V6ONLY on OpenBSD
It isn't necessary and runs afoul of pledge(2) restrictions.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 9d11d283..3170218e 100644
--- a/misc.c
+++ b/misc.c
@@ -1110,7 +1110,7 @@ unix_listener(const char *path, int backlog, int unlink_first)
void
sock_set_v6only(int s)
{
-#ifdef IPV6_V6ONLY
+#if defined(IPV6_V6ONLY) && !defined(__OpenBSD__)
int on = 1;
debug3("%s: set socket %d IPV6_V6ONLY", __func__, s);