diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 19:09:07 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 19:09:07 +0100 |
| commit | 28f43d02149c96b87555e08f79e0c33c7a07e1af (patch) | |
| tree | 8f07587ebba7e2bbc2ed1b590665b7c849780024 | |
| parent | 2c7659ec930277981b6333b5b3aff7840d11933c (diff) | |
Fix build. Last commit was too huge ;)
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | opentracker.c | 4 | ||||
| -rw-r--r-- | proxy.c | 2 |
3 files changed, 4 insertions, 4 deletions
| @@ -130,7 +130,7 @@ CFLAGS_test = $(CFLAGS) -I. -g -O1 $(FEATURES_test) | |||
| 130 | $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS) | 130 | $(TESTBIN): $(TEST_SOURCES) $(TEST_UNITS) $(TEST_HEADERS) |
| 131 | $(CC) -o $@ $(CFLAGS_test) $(TEST_SOURCES) $(TEST_UNITS) | 131 | $(CC) -o $@ $(CFLAGS_test) $(TEST_SOURCES) $(TEST_UNITS) |
| 132 | 132 | ||
| 133 | check: $(TESTBIN) | 133 | check: $(TESTBIN) $(BINARY) |
| 134 | ./$(TESTBIN) | 134 | ./$(TESTBIN) |
| 135 | 135 | ||
| 136 | .PHONY: all check clean install | 136 | .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) { | |||
| 694 | case CONFIG_LISTEN_TCP_UDP: | 694 | case CONFIG_LISTEN_TCP_UDP: |
| 695 | case CONFIG_LISTEN_TCP: | 695 | case CONFIG_LISTEN_TCP: |
| 696 | case CONFIG_LISTEN_UDP: { | 696 | case CONFIG_LISTEN_UDP: { |
| 697 | int shared = OT_LISTEN_INHERIT | 697 | int shared = OT_LISTEN_INHERIT; |
| 698 | int workers = OT_LISTEN_INHERIT; | 698 | int workers = OT_LISTEN_INHERIT; |
| 699 | int off = scan_ip6_port(p, tmpip, &tmpport); | 699 | int off = scan_ip6_port(p, tmpip, &tmpport); |
| 700 | 700 | ||
| 701 | if (!off || !listen_scan_options(p + off, &shared, &workers)) | 701 | if (!off || !listen_scan_options(p + off, &shared, &workers)) |
| 702 | goto parse_error; | 702 | goto parse_error; |
| @@ -485,7 +485,7 @@ static void panic(const char *routine) { | |||
| 485 | } | 485 | } |
| 486 | 486 | ||
| 487 | static int64_t ot_try_bind(ot_ip6 ip, uint16_t port) { | 487 | static int64_t ot_try_bind(ot_ip6 ip, uint16_t port) { |
| 488 | int64_t sock = socket_tcp_listen(ip, port); | 488 | int64_t sock = socket_tcp_listen(ip, port, SOCKET_EXCLUSIVE); |
| 489 | 489 | ||
| 490 | if (sock == -1) | 490 | if (sock == -1) |
| 491 | panic("socket_tcp_listen"); | 491 | panic("socket_tcp_listen"); |
