Allow listen_on to be used even without allow_remote_control
Since we intend to allow password based access, which works regardless of the value of allow_remote_control
This commit is contained in:
parent
1a643441f3
commit
c7e3c92a0a
@ -256,7 +256,7 @@ class Boss:
|
|||||||
# we dont allow reloading the config file to change
|
# we dont allow reloading the config file to change
|
||||||
# allow_remote_control
|
# allow_remote_control
|
||||||
self.allow_remote_control = opts.allow_remote_control
|
self.allow_remote_control = opts.allow_remote_control
|
||||||
if args.listen_on and (self.allow_remote_control in ('y', 'socket-only')):
|
if args.listen_on:
|
||||||
listen_fd = listen_on(args.listen_on)
|
listen_fd = listen_on(args.listen_on)
|
||||||
self.prewarm = prewarm
|
self.prewarm = prewarm
|
||||||
self.child_monitor = ChildMonitor(
|
self.child_monitor = ChildMonitor(
|
||||||
|
|||||||
@ -684,9 +684,7 @@ also use abstract UNIX sockets, not associated with a file, like this:
|
|||||||
expanded and relative paths are resolved with respect to the temporary
|
expanded and relative paths are resolved with respect to the temporary
|
||||||
directory. To control kitty, you can send commands to it with
|
directory. To control kitty, you can send commands to it with
|
||||||
:italic:`{appname} @` using the :option:`{appname} @ --to` option to specify
|
:italic:`{appname} @` using the :option:`{appname} @ --to` option to specify
|
||||||
this address. Unless you enabled :opt:`allow_remote_control` in
|
this address. Note that if you run :italic:`{appname} @` within a kitty window, there is
|
||||||
:file:`{conf_name}.conf`, this option will be ignored. Note that if you run
|
|
||||||
:italic:`{appname} @` within a kitty window, there is
|
|
||||||
no need to specify the :option:`{appname} @ --to` option as it will
|
no need to specify the :option:`{appname} @ --to` option as it will
|
||||||
automatically read from the environment. For UNIX sockets, this can also be
|
automatically read from the environment. For UNIX sockets, this can also be
|
||||||
specified in :file:`{conf_name}.conf`.
|
specified in :file:`{conf_name}.conf`.
|
||||||
|
|||||||
@ -324,7 +324,7 @@ def setup_environment(opts: Options, cli_opts: CLIOptions) -> None:
|
|||||||
if not cli_opts.listen_on and opts.listen_on.startswith('unix:'):
|
if not cli_opts.listen_on and opts.listen_on.startswith('unix:'):
|
||||||
cli_opts.listen_on = opts.listen_on
|
cli_opts.listen_on = opts.listen_on
|
||||||
from_config_file = True
|
from_config_file = True
|
||||||
if cli_opts.listen_on and opts.allow_remote_control != 'n':
|
if cli_opts.listen_on:
|
||||||
cli_opts.listen_on = expand_listen_on(cli_opts.listen_on, from_config_file)
|
cli_opts.listen_on = expand_listen_on(cli_opts.listen_on, from_config_file)
|
||||||
os.environ['KITTY_LISTEN_ON'] = cli_opts.listen_on
|
os.environ['KITTY_LISTEN_ON'] = cli_opts.listen_on
|
||||||
env = opts.env.copy()
|
env = opts.env.copy()
|
||||||
|
|||||||
@ -2739,8 +2739,7 @@ socket. This option accepts only UNIX sockets, such as
|
|||||||
variables are expanded and relative paths are resolved with respect to the
|
variables are expanded and relative paths are resolved with respect to the
|
||||||
temporary directory. If :code:`{kitty_pid}` is present, then it is replaced
|
temporary directory. If :code:`{kitty_pid}` is present, then it is replaced
|
||||||
by the PID of the kitty process, otherwise the PID of the kitty process is
|
by the PID of the kitty process, otherwise the PID of the kitty process is
|
||||||
appended to the value, with a hyphen. This option is ignored unless you also set
|
appended to the value, with a hyphen. See the help for
|
||||||
:opt:`allow_remote_control` to enable remote control. See the help for
|
|
||||||
:option:`kitty --listen-on` for more details. Changing this option by reloading
|
:option:`kitty --listen-on` for more details. Changing this option by reloading
|
||||||
the config is not supported.
|
the config is not supported.
|
||||||
'''
|
'''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user