Skip to content

Commit

Permalink
Merge pull request #38 from MkQtS/main
Browse files Browse the repository at this point in the history
docs: add `boot()` in OpenWrt procd script
  • Loading branch information
Mythologyli authored Sep 25, 2023
2 parents ca7effe + ce26f89 commit 7bf990c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@
CONFIG_FILE="/etc/back2zju.toml"
LOG_FILE="/var/log/back2zju.log"

boot() {
ubus -t 10 wait_for network.interface.wan 2>/dev/null
sleep 10
rc_procd start_service
}

start_service() {
ping -c1 ${NET_CHECKER} >/dev/null || ping -c1 ${NET_CHECKER} >/dev/null || return 1
procd_open_instance
Expand Down Expand Up @@ -155,7 +161,7 @@

1. ZJU 校园网使用的内网 IP 段是 `10.0.0.0/8`,可能需要将此 IP 段从代理插件的直连列表/局域网列表中移除并添加至代理列表。

2. 请确保使用的 RVPN 服务器与本机直连,若未将 `rvpn.zju.edu.cn` 配置为直连,此域名可能匹配分流规则与其他 `zju.edu.cn` 流量一样被发往 zju-connect 代理,这会造成网络异常。
2. 请确保使用的 RVPN 服务器与 OpenWrt 直连。若未将 `rvpn.zju.edu.cn` 配置为直连,此域名可能匹配分流规则与其他 `zju.edu.cn` 流量一样被发往 zju-connect 代理,这会造成网络异常。

#### Docker 运行

Expand Down

0 comments on commit 7bf990c

Please sign in to comment.