From aff82cebe987a25c2aaa32a1c2b4e2b0d568abea Mon Sep 17 00:00:00 2001 From: tigerbot Date: Wed, 21 Jun 2017 18:55:24 -0600 Subject: [PATCH] made it possible to check if domain is handled as client --- wstunneld.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wstunneld.js b/wstunneld.js index ff75f96..d4a1ca2 100644 --- a/wstunneld.js +++ b/wstunneld.js @@ -488,8 +488,11 @@ module.exports.create = function (copts) { console.error('[error] tcp socket raw TODO forward and close'); console.error(err); }); - } - return { tcp: onTcpConnection, ws: onWsConnection }; + return { + tcp: onTcpConnection + , ws: onWsConnection + , isClientDomain: Devices.exist.bind(null, deviceLists) + }; };