1
0
forked from circlecloud/tera

sync: sync upstream code

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-20 22:30:47 +08:00
parent a981ccbcae
commit 88bae3a4bd
12 changed files with 127 additions and 37 deletions

View File

@@ -852,6 +852,9 @@ export default class CTransport extends CConnect {
this.CanSend++
return;
}
if (global.NET_WORK_MODE && global.NET_WORK_MODE.NOT_RUN) {
return;
}
let SELF = this;
this.Server = net.createServer(function(sock: any) {
if (SELF.WasBanIP({ address: sock.remoteAddress })) {