diff options
author | Damien Miller <djm@mindrot.org> | 2015-12-09 09:18:45 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-12-09 09:18:45 +1100 |
commit | d86a3ba7af160c13496102aed861ae48a4297072 (patch) | |
tree | 548bd8ed710bd21ae9ddbb3ad37c8c4d10fe29aa | |
parent | da98c11d03d819a15429d8fff9688acd7505439f (diff) |
Don't set IPV6_V6ONLY on OpenBSD
It isn't necessary and runs afoul of pledge(2) restrictions.
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1110,7 +1110,7 @@ unix_listener(const char *path, int backlog, int unlink_first) | |||
1110 | void | 1110 | void |
1111 | sock_set_v6only(int s) | 1111 | sock_set_v6only(int s) |
1112 | { | 1112 | { |
1113 | #ifdef IPV6_V6ONLY | 1113 | #if defined(IPV6_V6ONLY) && !defined(__OpenBSD__) |
1114 | int on = 1; | 1114 | int on = 1; |
1115 | 1115 | ||
1116 | debug3("%s: set socket %d IPV6_V6ONLY", __func__, s); | 1116 | debug3("%s: set socket %d IPV6_V6ONLY", __func__, s); |