这个提交包含在:
2020-03-04 09:57:42 +08:00
父节点 3688f8840e
当前提交 0e641d4a75
共有 2 个文件被更改,包括 5 次插入 和 9 次删除

查看文件

@ -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, "监听设置完毕!");
} }
}) })
}; };

查看文件

@ -58,10 +58,8 @@ exports.add = {
}, },
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,"监听设置完毕!");
} }
}) })
} }