mirror of
https://git.coolaj86.com/coolaj86/telebit-relay.js.git
synced 2025-04-21 11:00:37 +00:00
made it possible to check if domain is handled as client
This commit is contained in:
parent
54ca2782dd
commit
aff82cebe9
@ -488,8 +488,11 @@ module.exports.create = function (copts) {
|
|||||||
console.error('[error] tcp socket raw TODO forward and close');
|
console.error('[error] tcp socket raw TODO forward and close');
|
||||||
console.error(err);
|
console.error(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return { tcp: onTcpConnection, ws: onWsConnection };
|
return {
|
||||||
|
tcp: onTcpConnection
|
||||||
|
, ws: onWsConnection
|
||||||
|
, isClientDomain: Devices.exist.bind(null, deviceLists)
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user