Skip to content

Commit

Permalink
Abort lws initialization if no interface has the specified IP. Free a…
Browse files Browse the repository at this point in the history
…llocated iface string.
  • Loading branch information
atoppi committed Jan 8, 2025
1 parent 95503c2 commit 0b2d977
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/transports/janus_websockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,11 @@ static struct lws_vhost* janus_websockets_create_ws_server(
ipv4_only = 1;
char *iface = janus_websockets_get_interface_name(ip);
if(iface == NULL) {
JANUS_LOG(LOG_WARN, "No interface associated with %s? Falling back to no interface...\n", ip);
JANUS_LOG(LOG_FATAL, "No interface associated with %s?\n", ip);
return NULL;
}
else {
g_free(iface);
}
}

Expand Down

0 comments on commit 0b2d977

Please sign in to comment.