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
3
Makefile
3
Makefile
|
|
@ -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 \
|
||||||
|
|
|
||||||
|
|
@ -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")?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue