Skip to content

fix(remote-input): 开关已开时启动也要拉起局域网服务 - #1002

Open
zhou-zhichao wants to merge 1 commit into
Open-Less:betafrom
zhou-zhichao:fix/remote-input-start-on-launch
Open

fix(remote-input): 开关已开时启动也要拉起局域网服务#1002
zhou-zhichao wants to merge 1 commit into
Open-Less:betafrom
zhou-zhichao:fix/remote-input-start-on-launch

Conversation

@zhou-zhichao

Copy link
Copy Markdown
Contributor

Summary

  • 远程输入只在设置开关/端口变化时 refresh_remote_server。启动时即使 remoteInputEnabled 已是 true,8443 也不会监听。
  • 用户看到开关开着,但没有访问网址和配对码,手机打不开页面。
  • 启动时 bind_app 之后补一次 refresh;设置页在「已启用但未 running」时提示关掉再开、不要重启。

Test plan

  • 打开远程输入,确认出现访问网址和配对码
  • 完全退出再打开 OpenLess,开关仍开时 8443 自动在听,网址还在
  • 关掉开关后重启,服务不再监听

Toggling the setting only refreshed the server on a prefs change. After restart the switch stayed on but port 8443 never bound, so the phone page could not open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant