Skip to content

Commit

Permalink
Merge pull request #225 from Faless/fix_enetunrech_win
Browse files Browse the repository at this point in the history
Use SENETUNREACH to fix some windows builds
  • Loading branch information
paullouisageneau authored Oct 21, 2023
2 parents 95caecd + de3b7ce commit 025ee38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ int agent_send_stun_binding(juice_agent_t *agent, agent_stun_entry_t *entry, stu
// Direct send
int ret = agent_direct_send(agent, &entry->record, buffer, size, 0);
if (ret < 0) {
if (ret == ENETUNREACH)
if (ret == SENETUNREACH)
JLOG_INFO("STUN binding failed: Network unreachable");
else
JLOG_WARN("STUN message send failed");
Expand Down

0 comments on commit 025ee38

Please sign in to comment.