Minor fixes

master
paradust7 2023-08-24 16:24:07 +00:00
parent 1383af2646
commit 1ee93c5715
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,7 @@ export class Client {
handle_close() {
this.socket = null;
this.close();
}
handle_message(buffer, isBinary) {

3
vpn.js
View File

@ -57,7 +57,7 @@ class VPNTarget {
}
this.addr = `${this.ip}:${this.bindport}`;
vpn.targets.set(this.addr, this);
client.log("VPN connect to ${this.addr}");
client.log(`VPN connect to ${this.addr}`);
}
// Forward a message from the client
@ -92,6 +92,7 @@ class VPNTarget {
}
close() {
this.vpn.targets.delete(this.addr);
this.client.close();
}
}