ReuseAddr on all sytems, resuseport only on Unix

This commit is contained in:
Igor Katson 2024-08-26 21:22:00 +01:00
parent c589323bcb
commit c14ccd5fa2
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 3 additions and 1 deletions

View file

@ -113,7 +113,6 @@ impl SsdpRunner {
#[cfg(not(target_os = "windows"))]
sock.set_reuse_port(true)
.context("error setting SO_REUSEPORT")?;
#[cfg(target_os = "windows")]
sock.set_reuse_address(true)
.context("error setting SO_REUSEADDR")?;