这个提交包含在:
2020-03-04 10:04:24 +08:00
父节点 9e0ff28fd2
当前提交 fcdf1f3f8e
共有 2 个文件被更改,包括 12 次插入 和 5 次删除

查看文件

@ -68,7 +68,14 @@ exports.add = {
Interfaces: {},
Control: (function (connect, Info) {
if (Info.message.substr(0, 4) == "获取监听") {
Core.frame.SendMsg(connect, Info, "Host:Port => " + ServerWeb.address());
var temp;
if (typeof ServerWeb.address() == null) {
temp = -1;
}
else {
temp = ServerWeb.address().port;
}
Core.frame.SendMsg(connect, Info, "0.0.0.0:" + temp);
}
})
};

查看文件

@ -60,12 +60,12 @@ exports.add = {
Control:((connect:net.Socket,Info:Core.InfoType)=>{
if(Info.message.substr(0,4)=="获取监听"){
var temp;
if(ServerWeb.address()==null){
temp = "0.0.0.0:-1"
if(typeof ServerWeb.address() == null){
temp = -1;
}else{
temp = ServerWeb.address().toString();
temp = (ServerWeb.address() as net.AddressInfo).port;
}
Core.frame.SendMsg(connect,Info,`Host:Port => ${temp}`);
Core.frame.SendMsg(connect,Info,`0.0.0.0:${temp}`);
}
})
}