Skip to content

Commit

Permalink
Fix upnp error message
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed May 15, 2024
1 parent 45db861 commit 58f1d85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/remote/holepunch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ static ChiakiErrorCode upnp_get_gateway_info(ChiakiLog *log, UPNPGatewayInfo *in
struct UPNPDev *devlist = upnpDiscover(
2000 /** ms, delay*/, NULL, NULL, 0, 0, 2, &success);
if (devlist == NULL || err != UPNPDISCOVER_SUCCESS) {
CHIAKI_LOGI(log, "Failed to UPnP-capable devices on network: err=%d", err);
CHIAKI_LOGI(log, "Failed to find UPnP-capable devices on network: err=%d", err);
return CHIAKI_ERR_NETWORK;
}

Expand Down Expand Up @@ -2803,7 +2803,6 @@ static ChiakiErrorCode check_candidates(
{
CHIAKI_LOGE(session->log, "check_candidate: Sending request failed for %s:%d with error: " CHIAKI_SOCKET_ERROR_FMT, candidate->addr, candidate->port, CHIAKI_SOCKET_ERROR_VALUE);
err = CHIAKI_ERR_NETWORK;
freeaddrinfo(addr_remote);
continue;
}
}
Expand Down

0 comments on commit 58f1d85

Please sign in to comment.