Merge pull request #1746 in FS/freeswitch from ~SAFAROV/freeswitch2:FS-11917 to master
* commit '6704d3aabeacdfa9a652f700379b072b6166f5a0': FS-11917: [mod_event_socket] Added error logging if cannot parse IP address
This commit is contained in:
commit
5123b00426
|
@ -2934,8 +2934,10 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_event_socket_runtime)
|
|||
|
||||
while (!prefs.done) {
|
||||
rv = switch_sockaddr_info_get(&sa, prefs.ip, SWITCH_UNSPEC, prefs.port, 0, pool);
|
||||
if (rv)
|
||||
if (rv) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot get information about IP address %s\n", prefs.ip);
|
||||
goto fail;
|
||||
}
|
||||
rv = switch_socket_create(&listen_list.sock, switch_sockaddr_get_family(sa), SOCK_STREAM, SWITCH_PROTO_TCP, pool);
|
||||
if (rv)
|
||||
goto sock_fail;
|
||||
|
|
Loading…
Reference in New Issue