summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bin/quick.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/quick.c b/bin/quick.c
index d6361aad..edf35a3b 100644
--- a/bin/quick.c
+++ b/bin/quick.c
@@ -122,6 +122,9 @@ int main(int argc, char *argv[]) {
 	if (server < 0) err(EX_OSERR, "socket");
 	fcntl(server, F_SETFD, FD_CLOEXEC);
 
+	int on = 1;
+	setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
+
 	struct sockaddr_in addr = {
 		.sin_family = AF_INET,
 		.sin_port = htons(port),
0'>2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe