netapp.rs: Set SO_REUSEPORT_LB on FreeBSD.
This commit is contained in:
parent
a1f0985638
commit
dc358ebcf8
1 changed files with 5 additions and 0 deletions
|
@ -210,6 +210,11 @@ impl NetApp {
|
|||
.set_reuseport(true)
|
||||
.expect("Unable to set SO_REUSEPORT on socket");
|
||||
|
||||
#[cfg(target_os = "freebsd")]
|
||||
listen_addr_socket
|
||||
.set_reuseport_lb(true)
|
||||
.expect("Unable to set SO_REUSEPORT_LB on socket");
|
||||
|
||||
listen_addr_socket
|
||||
.bind(listen_addr)
|
||||
.expect("Unable to bind on listen_addr socket");
|
||||
|
|
Loading…
Reference in a new issue