Skip to content

Commit

Permalink
fixup! Add hook to override socket creation for hosted sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
tomc797 committed Oct 24, 2024
1 parent e92f6ae commit fd59e95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ziti-tunnel-cbs/ziti_hosting.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,9 +746,11 @@ static int do_udp_connect(hosted_io_context io, const struct addrinfo *remote_ad
return uv_err;
}

if (io->bind_address && (uv_err = uv_udp_bind(&io->server.udp, io->bind_address->ai_addr, 0)) < 0) {
if (io->bind_address && (uv_err = uv_udp_bind(&io->server.udp, io->bind_address->ai_addr, 0)) < 0)
return uv_err;

if ((uv_err = udp_connect(&io->server.udp, remote_address->ai_addr)) < 0)

Check failure on line 752 in lib/ziti-tunnel-cbs/ziti_hosting.c

View workflow job for this annotation

GitHub Actions / build macOS-x64

call to undeclared function 'udp_connect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

Check failure on line 752 in lib/ziti-tunnel-cbs/ziti_hosting.c

View workflow job for this annotation

GitHub Actions / build macOS-arm64

call to undeclared function 'udp_connect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return uv_err;
}

return 0;
}
Expand Down

0 comments on commit fd59e95

Please sign in to comment.