feat: add settings for daemon host and port in browser extension#636
Open
zarkin404 wants to merge 2 commits intojackwener:mainfrom
Open
feat: add settings for daemon host and port in browser extension#636zarkin404 wants to merge 2 commits intojackwener:mainfrom
zarkin404 wants to merge 2 commits intojackwener:mainfrom
Conversation
- Introduced a settings section in the popup to allow users to configure the daemon host and port. - Implemented storage functionality to save and retrieve these settings. - Updated connection logic to use the configured host and port for WebSocket connections. - Enhanced the background script to handle changes in the stored settings and reconnect accordingly. - Bumped version to 1.5.5 to reflect these changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related issue:
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorScreenshots / Output
PR 目的
有些场合下,浏览器和 OpenCli 的运行环境并不一定在同一台主机上,譬如 OpenCli 被远程服务器上的 OpenClaw 启动,而自己的电脑则运行这安装了插件的浏览器,所以需要浏览器连到远程服务器上的 OpenCli Daemon,远程服务器可以通过 frpc 将 Daemon 的监听端口暴露到公网,以便于插件链接,进而规避目标平台的 IP 检测或者其他风控检测。
附 frpc.toml 配置:
浏览器插件配置:
Daemon host: 服务器 ip
Daemon port: 23333 (记得防火墙和安全组要放行该端口)