made it possible to check if domain is handled as client

This commit is contained in:
tigerbot 2017-06-21 18:55:24 -06:00
父節點 54ca2782dd
當前提交 aff82cebe9
共有 1 個檔案被更改,包括 5 行新增2 行删除

查看文件

@ -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)
};
};