|
@@ -34,21 +34,13 @@ xhr.onreadystatechange = function () {
|
|
|
if (portResult) {
|
|
|
let portValue: string = portResult[1];
|
|
|
server_port.value = ":" + portValue;
|
|
|
-
|
|
|
- // console.log(`当前端口为:${server_port.value}`);
|
|
|
- // console.log(`当前ip为:${server_ip.value}`);
|
|
|
}
|
|
|
if (ipResult) {
|
|
|
let ipValue: string = ipResult[1];
|
|
|
server_ip.value = ipValue;
|
|
|
-
|
|
|
- // console.log(`当前端口为:${server_port.value}`);
|
|
|
- // console.log(`当前ip为:${server_ip.value}`);
|
|
|
}
|
|
|
- console.log(`当前端口为:${server_port.value}`);
|
|
|
- console.log(`当前ip为:${server_ip.value}`);
|
|
|
- // const port = headers.match(/port: (\d+)/i)[1];
|
|
|
- // console.log("Port:", headers);
|
|
|
+ console.log(`当前端口为:${server_port.value}`);
|
|
|
+ console.log(`当前ip为:${server_ip.value}`);
|
|
|
} else {
|
|
|
console.error("There was a problem with the request.");
|
|
|
}
|