Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动更新moon/planet, 以适应动态ip #68

Closed
basncy opened this issue Nov 4, 2023 · 7 comments
Closed

自动更新moon/planet, 以适应动态ip #68

basncy opened this issue Nov 4, 2023 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@basncy
Copy link

basncy commented Nov 4, 2023

moon/planet服务器上有个脚本, 每次IP更新后自动生成新的moon/planet文件. Linux/Win 已使用syncthing同步更新此文件.

android上首次导入moon和planet后不会自动更新, 希望增加此功能. 每次启动的时候从url下载最新的.

@kaaass kaaass added enhancement New feature or request good first issue Good for newcomers labels Nov 6, 2023
@kaaass
Copy link
Owner

kaaass commented Nov 6, 2023

听起来可以实现类似 DDNS 的效果,好棒!我考虑在之后的版本试验性的添加下,不过优先级可能不会那么高所以短期可能不会做,可以持续关注下本 Issue

@basncy
Copy link
Author

basncy commented Nov 28, 2023

如果仅自建moon, 给个选项每次启动时自动刷新moon缓存也能达到同样效果.

@kaaass
Copy link
Owner

kaaass commented Nov 29, 2023

@basncy 目前 通过 URL 下载 Moon 文件的时候不会存 URL 没做通过 URL 下载 Moon 文件,所以做的话应该和 Planet 也差不多

@basncy
Copy link
Author

basncy commented Nov 29, 2023

可以通过moon地址更新, 遍历moons.d文件夹就行了.
或者启动时先清空moons.d里的缓存,让zerotier自己去更新(未验证)

@kaaass
Copy link
Owner

kaaass commented Nov 29, 2023

通过地址更新需要删除缓存的 Moon 文件并在网络启动的时候 orbit。如果只配置了一个 Moon 并且 Planet 的连通性不好的话其实应该也不太能顺利更新的。这个需求应该还是要 URL 下载更合理一点。

@basncy
Copy link
Author

basncy commented Nov 29, 2023

这里要解决的是通过更新moon缓存搞定带宽和延时问题.

对于planet连通性, 极端网络条件下, 可以临时用手机流量更新一下.(比较灵活的选项是让用户选择:是否在每次启动时自动更新缓存)

通过URL下载能从根本上解决问题, 但需要的配套设施和维护也挺多的.

@basncy
Copy link
Author

basncy commented Feb 15, 2024

找҃到一种更好҄的方案: #82

@basncy basncy closed this as completed Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants