mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
socket-dynamic: Don't set SO_REUSEADDR on IKE sockets anymore
Same as the previous commit.
This commit is contained in:
parent
83da133712
commit
5f9ad62a81
@ -410,12 +410,6 @@ static int open_socket(private_socket_dynamic_socket_t *this,
|
||||
DBG1(DBG_NET, "could not open socket: %s", strerror(errno));
|
||||
return 0;
|
||||
}
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void*)&on, sizeof(on)) < 0)
|
||||
{
|
||||
DBG1(DBG_NET, "unable to set SO_REUSEADDR on socket: %s", strerror(errno));
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (bind(fd, &addr.s, addrlen) < 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user