diff --git a/src/netapp.rs b/src/netapp.rs index 3fa4db3..72a284e 100644 --- a/src/netapp.rs +++ b/src/netapp.rs @@ -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");