Skip to content

Commit

Permalink
修改ip获取站点为公共站点
Browse files Browse the repository at this point in the history
  • Loading branch information
qist committed Aug 11, 2023
1 parent 297fa31 commit 5342556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ EOF
sleep 1
xray-ui restart
xuilogin() {
v4=$(curl -s4m8 https://gio.tycng.com/ipinfo -k)
v6=$(curl -s6m8 https://gio.tycng.com/ipinfo -k)
v4=$(curl -s4m8 http://ip.sb -k)
v6=$(curl -s6m8 http://ip.sb -k)
if [[ -z $v4 ]]; then
int="${green}请在浏览器地址栏复制${plain} ${bblue}[$v6]:$ports${plain} ${green}进入xray-ui登录界面\n当前xray-ui登录用户名:${plain}${bblue}${username}${plain}${green} \n当前xray-ui登录密码:${plain}${bblue}${password}${plain}"
elif [[ -n $v4 && -n $v6 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion util/common/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func GetMyIpAddr() string {
resp, err := http.Get("https://api64.ipify.org")
if err != nil {
resp, _ = http.Get("https://gio.tycng.com/ipinfo")
resp, _ = http.Get("http://ip.sb")
}
defer resp.Body.Close()
s, _ := ioutil.ReadAll(resp.Body)
Expand Down

0 comments on commit 5342556

Please sign in to comment.