ReuseAddr on all sytems, resuseport only on Unix
This commit is contained in:
parent
c589323bcb
commit
c14ccd5fa2
2 changed files with 3 additions and 1 deletions
|
|
@ -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")?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue