Skip to content
Snippets Groups Projects
Commit c34d7f87 authored by deuce's avatar deuce
Browse files

Fix printing of remote address.

This is a callout if either client.socket is undefined or if
client.socket.descriptor === -1
parent d5097eb7
No related branches found
No related tags found
No related merge requests found
......@@ -680,7 +680,7 @@ function run_inbound(sock)
var success = false;
var semaphores = [];
log(LOG_INFO, "Got inbound call from "+sock.remote_ip_addr+":"+sock.remote_port);
log(LOG_INFO, "Got inbound call from "+sock.remote_ip_address+":"+sock.remote_port);
bp.cb_data = {
binkitcfg:new BinkITCfg(),
binkit_scfg:new SBBSEchoCfg(),
......@@ -718,7 +718,7 @@ try {
catch(e) {}
// If we're running as a service, call run_inbound().
if (sock !== undefined)
if (sock !== undefined && sock.descriptor !== -1)
run_inbound(sock);
else
run_outbound();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment