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

希望增加一键修改局域网IP功能 #176

Open
jxyun99 opened this issue May 11, 2024 · 5 comments
Open

希望增加一键修改局域网IP功能 #176

jxyun99 opened this issue May 11, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@jxyun99
Copy link

jxyun99 commented May 11, 2024

面板上的链接支持外部链接和局域网链接,在正常情况下是没啥问题,但是如果遇到换了路由器的话就麻烦了,因为不同路由默认局域网IP段是不一样的,这时候换了新路由就必须批量修改sun-panel面板中的链接,只能一个一个的改,或者导出配置文件,改了再传上去,反正就是挺麻烦的,希望后续能增加批量修改局域网IP的功能,比如开始的ip为192.168.1.1,换路由后,能在sun-panel面板中把链接快速换成192.168.5.1

@jxyun99 jxyun99 added the enhancement New feature or request label May 11, 2024
@yomunsam
Copy link

或者说通用点就是加一个自定义环境变量并且可以插值的功能……

@Tan-xiaozi
Copy link

你考虑过有不同的局域网IP,比如有192.168.1.1 也有192.168.1.2 他同时存在10.0.0.1也同存172.10.1.1,jiaru 一键修改,岂不是都乱套了

@jxyun99
Copy link
Author

jxyun99 commented May 13, 2024

或者说通用点就是加一个自定义环境变量并且可以插值的功能……

对,这样也可以,不然,局域网ip写死了,换了其他网段的时候,要改麻烦死了

@jxyun99
Copy link
Author

jxyun99 commented May 13, 2024

本来考虑用相对路径的写法,但是发现带端口的情况下,相对路径不行

@Firfr
Copy link

Firfr commented May 21, 2024

如果路由器支持自定义host,可以直接用局域网域名,就像这样
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants