WebUI
这个提交包含在:
6
WebUI.js
6
WebUI.js
@ -67,10 +67,8 @@ ServerWeb.listen(8081, "0.0.0.0", function () {
|
|||||||
exports.add = {
|
exports.add = {
|
||||||
Interfaces: {},
|
Interfaces: {},
|
||||||
Control: (function (connect, Info) {
|
Control: (function (connect, Info) {
|
||||||
if (Info.message.substr(0, 4) == "设置监听") {
|
if (Info.message.substr(0, 4) == "获取监听") {
|
||||||
MainConnect = connect;
|
Core.frame.SendMsg(connect, Info, "Host:Port => " + ServerWeb.address());
|
||||||
MainGroup = Info;
|
|
||||||
Core.frame.SendMsg(connect, Info, "监听设置完毕!");
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|||||||
8
WebUI.ts
8
WebUI.ts
@ -55,13 +55,11 @@ ServerWeb.listen(8081,"0.0.0.0",()=>{
|
|||||||
});
|
});
|
||||||
exports.add = {
|
exports.add = {
|
||||||
Interfaces:{
|
Interfaces:{
|
||||||
|
|
||||||
},
|
},
|
||||||
Control:((connect:net.Socket,Info:Core.InfoType)=>{
|
Control:((connect:net.Socket,Info:Core.InfoType)=>{
|
||||||
if(Info.message.substr(0,4)=="设置监听"){
|
if(Info.message.substr(0,4)=="获取监听"){
|
||||||
MainConnect = connect;
|
Core.frame.SendMsg(connect,Info,`Host:Port => ${ServerWeb.address()}`);
|
||||||
MainGroup = Info;
|
|
||||||
Core.frame.SendMsg(connect,Info,"监听设置完毕!");
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
在新工单中引用
屏蔽一个用户