Skip to content

Commit

Permalink
net: OpenBSD similar with FreeBSD at net_connect_ip_full
Browse files Browse the repository at this point in the history
  • Loading branch information
catap committed Oct 14, 2024
1 parent 24e7e11 commit f8ac266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8ac266

Please sign in to comment.