Skip to content

Commit

Permalink
ReuseAddr on all sytems, resuseport only on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Aug 26, 2024
1 parent c589323 commit c14ccd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ create-target-docker:
cp -lf target/armv7-unknown-linux-musleabihf/release-github/rqbit target/docker/linux/arm/v7/rqbit && \
cp docker/Dockerfile target/Docker

@PHONE: docker-build-prereqs
docker-build-prereqs: release-linux-aarch64 release-linux-x86_64 release-linux-armv7

@PHONY: docker-build
docker-build: create-target-docker
docker build \
Expand Down
1 change: 0 additions & 1 deletion crates/upnp-serve/src/ssdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;

Expand Down

0 comments on commit c14ccd5

Please sign in to comment.