Open
Conversation
Owner
|
这个地方是特意弄的(因为不想给国内安装(访问不了1111 确实单点依赖是为了省事,(也有不想给国内安装的原因 最后,感谢你的pr,虽然这个问题早就有不少人提出了,但为了解决获取 ip 而增加这些代码其实是有些复杂,如果单纯只是为了避免解决获取不到 ip,只需要在获取不到 ip 的时候直接自定义一个 ip=127.0.0.1 并提醒用户类似消息 “获取ip 失败,临时设置ip 为 127.0.0.1,请更改服务器地址为本机ip”,这样一切工作依旧(这个问题我其实没有好的解决方案,只能取舍少部分可能会出现问题的情况,你可以自定义提前在终端 export ip=233 自定义 ip 并且还可以省去请求( |
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.
变更说明
这个 PR 主要改进了脚本在获取公网 IP 时的容错处理,避免因为单个探测接口不可达而直接失败。
调整内容
get_ip()增加多个公网 IP 探测源,降低对https://one.one.one.one/cdn-cgi/trace的单点依赖install.sh与运行脚本src/core.sh保持一致的处理逻辑预期效果