mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-05-04 09:08:35 +00:00
Don't set IPV6_V6ONLY on OpenBSD
It isn't necessary and runs afoul of pledge(2) restrictions.
This commit is contained in:
parent
da98c11d03
commit
d86a3ba7af
2
misc.c
2
misc.c
@ -1110,7 +1110,7 @@ unix_listener(const char *path, int backlog, int unlink_first)
|
|||||||
void
|
void
|
||||||
sock_set_v6only(int s)
|
sock_set_v6only(int s)
|
||||||
{
|
{
|
||||||
#ifdef IPV6_V6ONLY
|
#if defined(IPV6_V6ONLY) && !defined(__OpenBSD__)
|
||||||
int on = 1;
|
int on = 1;
|
||||||
|
|
||||||
debug3("%s: set socket %d IPV6_V6ONLY", __func__, s);
|
debug3("%s: set socket %d IPV6_V6ONLY", __func__, s);
|
||||||
|
Loading…
Reference in New Issue
Block a user