mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 02:59:23 +08:00
feat: 国内IP接口使用高通替代哔哩哔哩
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
var userAgent = "curl/8.0.1"
|
var userAgent = "curl/8.0.1"
|
||||||
|
|
||||||
func GetIPv4Address() (string, error) {
|
func GetIPv4Address() (string, error) {
|
||||||
webAPIs := []string{"https://api.bilibili.com/x/web-interface/zone", "https://ip.sb", "https://api.ipify.org?format=json"}
|
webAPIs := []string{"https://www.qualcomm.cn/cdn-cgi/trace", "https://ip.sb", "https://api.ipify.org?format=json"}
|
||||||
|
|
||||||
for _, api := range webAPIs {
|
for _, api := range webAPIs {
|
||||||
// get ipv4
|
// get ipv4
|
||||||
|
Reference in New Issue
Block a user