cvmts: Fix protocol error disconnection behavior so it actually works
This commit is contained in:
@@ -708,9 +708,14 @@ export default class CollabVMServer {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// No
|
this.logger.error({
|
||||||
this.logger.error(`User ${user?.IP.address} ${user?.username ? `with username ${user?.username}` : ''} sent broken Guacamole: ${err as Error}`);
|
ip: client.IP.address,
|
||||||
user?.kick();
|
username: client.username,
|
||||||
|
error_message: (err as Error).message
|
||||||
|
}, 'Error in CollabVMServer#onMessage.');
|
||||||
|
|
||||||
|
// should probably only do this for protocol errors
|
||||||
|
client.kick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user