mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix --allow-remote-control without passwords not working
This commit is contained in:
@@ -523,8 +523,10 @@ class Window:
|
||||
self.allow_remote_control = allow_remote_control
|
||||
|
||||
def remote_control_allowed(self, pcmd: Dict[str, Any], extra_data: Dict[str, Any]) -> bool:
|
||||
if not self.allow_remote_control or not self.remote_control_passwords:
|
||||
if not self.allow_remote_control:
|
||||
return False
|
||||
if not self.remote_control_passwords:
|
||||
return True
|
||||
pw = pcmd.get('password', '')
|
||||
auth_items = self.remote_control_passwords.get(pw)
|
||||
if pw == '!':
|
||||
|
||||
Reference in New Issue
Block a user