Use session.id instead of making one
This commit is contained in:
parent
7a1d72ed63
commit
a8cba90d7b
@ -4,5 +4,5 @@ import SRServer from "../kcp/SRServer";
|
|||||||
|
|
||||||
export default async function handle(session: Session, packet: Packet) {
|
export default async function handle(session: Session, packet: Packet) {
|
||||||
// Remove from session list
|
// Remove from session list
|
||||||
SRServer.getInstance().sessions.delete(`${session.ctx.address}:${session.ctx.port}`);
|
SRServer.getInstance().sessions.delete(session.id);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user