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

@ -111,6 +111,9 @@ create-target-docker:
cp -lf target/armv7-unknown-linux-musleabihf/release-github/rqbit target/docker/linux/arm/v7/rqbit && \ cp -lf target/armv7-unknown-linux-musleabihf/release-github/rqbit target/docker/linux/arm/v7/rqbit && \
cp docker/Dockerfile target/Docker 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 @PHONY: docker-build
docker-build: create-target-docker docker-build: create-target-docker
docker build \ docker build \

View file

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