~bakpakin/janet

9c97d8f648f0d9716ea2781e70f097bcd4df510d — Calvin Rose 1 year, 4 months ago 7acb5c6 + 40080b2
Merge pull request #1171 from zevv/zevv-net-connect

Fixed net/connect binding address
1 files changed, 1 insertions(+), 1 deletions(-)

M src/core/net.c
M src/core/net.c => src/core/net.c +1 -1
@@ 460,7 460,7 @@ JANET_CORE_FN(cfun_net_connect,
    if (binding) {
        struct addrinfo *rp = NULL;
        int did_bind = 0;
        for (rp = ai; rp != NULL; rp = rp->ai_next) {
        for (rp = binding; rp != NULL; rp = rp->ai_next) {
            if (bind(sock, rp->ai_addr, (int) rp->ai_addrlen) == 0) {
                did_bind = 1;
                break;