From 19113cb4a672fc5a7c64e00647f4b9c5e620d217 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 7 Jan 2019 07:18:42 +0000 Subject: [PATCH] Include BinkP.connect_host, .connect_port, and .connect_error (when available) in callout stats (stored in binkstats.ini). --- exec/binkit.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exec/binkit.js b/exec/binkit.js index 6a5d146c63..534f4d42d6 100644 --- a/exec/binkit.js +++ b/exec/binkit.js @@ -39,8 +39,14 @@ function update_stats(stats, addr, bp, host) stats[addr].caps = bp.remote_capabilities; if(bp.remote_ver) stats[addr].vers = bp.remote_ver; - if(host) + if(bp.connect_host) + stats[addr].host = bp.connect_host; + else if(host) stats[addr].host = host; + if(bp.connect_port) + stats[addr].port = bp.connect_port; + if(bp.connect_error !== undefined) + stats[addr].connect_error = bp.connect_error; for(var i in bp.remote_info) stats[addr]['info.' + i.toLowerCase()] = bp.remote_info[i]; -- GitLab