From f8ac266e6ce175cefbc0028352cadfb7bc11c50d Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Sun, 13 Oct 2024 11:07:00 +0200 Subject: [PATCH] net: OpenBSD similar with FreeBSD at net_connect_ip_full --- src/lib/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/net.c b/src/lib/net.c index 418d37d17e..5ef450af07 100644 --- a/src/lib/net.c +++ b/src/lib/net.c @@ -248,7 +248,7 @@ static int net_connect_ip_full(const struct ip_addr *ip, in_port_t port, fd = net_connect_ip_once(ip, port, my_ip, sock_type, blocking); if (fd != -1 || try++ >= MAX_CONNECT_RETRIES || (errno != EADDRNOTAVAIL -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) /* busy */ && errno != EADDRINUSE /* pf may cause this if another connection used