This commit is contained in:
lightings 2023-04-12 15:33:55 +08:00
parent 36ad2878cc
commit 71a0c65a29
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,6 @@ handler.queryEntry = function(msg, session, next) {
let host = res.proxyHost || res.clientHost || res.host;
let port = res.proxyPort || res.clientPort || res.port;
next(null, {code: Code.OK, host: host, port: res.clientPort});
next(null, {code: Code.OK, host: host, port: port});
}

View File

@ -21,7 +21,7 @@ client.on("data", function (data) {
setTimeout(() => {
game = new net.Socket();
console.log(data.port+1000, data.host);
console.log(data.port, data.host);
game.connect(data.port, data.host, function () {
console.log("Connected");
game.write("entry");