From 28f43d02149c96b87555e08f79e0c33c7a07e1af Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 25 Oct 2026 19:09:07 +0100 Subject: Fix build. Last commit was too huge ;) --- Makefile | 2 +- opentracker.c | 4 ++-- proxy.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9a09e7b..9ba0e2d 100644 --- a/Makefile +++ b/Makefile @@ -130,7 +130,7 @@ CFLAGS_test = $(CFLAGS) -I. -g -O1 $(FEATURES_test) $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS) $(CC) -o $@ $(CFLAGS_test) $(TEST_SOURCES) $(TEST_UNITS) -check: $(TESTBIN) +check: $(TESTBIN) $(BINARY) ./$(TESTBIN) .PHONY: all check clean install diff --git a/opentracker.c b/opentracker.c index 5f21ede..1b0e119 100644 --- a/opentracker.c +++ b/opentracker.c @@ -694,9 +694,9 @@ int parse_configfile(char *config_filename) { case CONFIG_LISTEN_TCP_UDP: case CONFIG_LISTEN_TCP: case CONFIG_LISTEN_UDP: { - int shared = OT_LISTEN_INHERIT + int shared = OT_LISTEN_INHERIT; int workers = OT_LISTEN_INHERIT; - int off = scan_ip6_port(p, tmpip, &tmpport); + int off = scan_ip6_port(p, tmpip, &tmpport); if (!off || !listen_scan_options(p + off, &shared, &workers)) goto parse_error; diff --git a/proxy.c b/proxy.c index 16b8286..a870c63 100644 --- a/proxy.c +++ b/proxy.c @@ -485,7 +485,7 @@ static void panic(const char *routine) { } static int64_t ot_try_bind(ot_ip6 ip, uint16_t port) { - int64_t sock = socket_tcp_listen(ip, port); + int64_t sock = socket_tcp_listen(ip, port, SOCKET_EXCLUSIVE); if (sock == -1) panic("socket_tcp_listen"); -- cgit v1.3