diff --git a/asia/Hotstar.go b/asia/Hotstar.go index f1f7904..eaf9f0a 100644 --- a/asia/Hotstar.go +++ b/asia/Hotstar.go @@ -2,17 +2,18 @@ package asia import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // HotStar // api.hotstar.com 双栈 get 请求 func HotStar(c *http.Client) model.Result { name := "HotStar" - hostname := "hotstar.com" + hostname := "api.hotstar.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/ChatGPT.go b/transnation/ChatGPT.go index bc04144..e0d66d6 100644 --- a/transnation/ChatGPT.go +++ b/transnation/ChatGPT.go @@ -2,18 +2,18 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // OpenAI // api.openai.com 仅 ipv4 且 get 请求 func OpenAI(c *http.Client) model.Result { name := "ChatGPT" - hostname := "openai.com" if c == nil { return model.Result{Name: name} } @@ -124,7 +124,7 @@ func OpenAI(c *http.Client) model.Result { if location != "" { loc := strings.ToLower(location) exit := utils.GetRegion(loc, model.GptSupportCountry) - result1, result2, result3 := utils.CheckDNS(hostname) + result1, result2, result3 := utils.CheckDNS("api.openai.com") unlockType := utils.GetUnlockType(result1, result2, result3) if exit { return model.Result{Name: name, Status: model.StatusYes, Region: loc, UnlockType: unlockType} @@ -136,12 +136,12 @@ func OpenAI(c *http.Client) model.Result { return model.Result{Name: name, Status: model.StatusYes} } } else if !unsupportedCountry && VPN && reqStatus1 { - result1, result2, result3 := utils.CheckDNS(hostname) + result1, result2, result3 := utils.CheckDNS("chat.openai.com") unlockType := utils.GetUnlockType(result1, result2, result3) return model.Result{Name: name, Status: model.StatusYes, Info: "Only Available with Web Browser", UnlockType: unlockType} } else if unsupportedCountry && !VPN && reqStatus2 { - result1, result2, result3 := utils.CheckDNS(hostname) + result1, result2, result3 := utils.CheckDNS("ios.chat.openai.com") unlockType := utils.GetUnlockType(result1, result2, result3) return model.Result{Name: name, Status: model.StatusYes, Info: "Only Available with Mobile APP", UnlockType: unlockType} diff --git a/transnation/DAZN.go b/transnation/DAZN.go index 8de9ebb..f224522 100644 --- a/transnation/DAZN.go +++ b/transnation/DAZN.go @@ -2,16 +2,17 @@ package transnation import ( "encoding/json" + "net/http" + "github.com/oneclickvirt/UnlockTests/model" "github.com/oneclickvirt/UnlockTests/utils" - "net/http" ) // DAZN // startup.core.indazn.com 仅 ipv4 且 post 请求 func DAZN(c *http.Client) model.Result { name := "Dazn" - hostname := "indazn.com" + hostname := "startup.core.indazn.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/IQiYi.go b/transnation/IQiYi.go index 80141c2..dc497b3 100644 --- a/transnation/IQiYi.go +++ b/transnation/IQiYi.go @@ -2,16 +2,18 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // IQiYi // www.iq.com 仅 ipv4 且 get 请求 func IQiYi(c *http.Client) model.Result { name := "IQiYi" + hostname := "www.iq.com" if c == nil { return model.Result{Name: name} } @@ -40,7 +42,9 @@ func IQiYi(c *http.Client) model.Result { } } if region != "" { - return model.Result{Name: name, Status: model.StatusYes, Region: region} + result1, result2, result3 := utils.CheckDNS(hostname) + unlockType := utils.GetUnlockType(result1, result2, result3) + return model.Result{Name: name, Status: model.StatusYes, Region: region, UnlockType: unlockType} } else { return model.Result{Name: name, Status: model.StatusUnexpected, Err: fmt.Errorf("get www.iq.com failed with head: %s", tp)} diff --git a/transnation/InstagramMusic.go b/transnation/InstagramMusic.go index 1e85765..ed098e9 100644 --- a/transnation/InstagramMusic.go +++ b/transnation/InstagramMusic.go @@ -2,17 +2,18 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // Instagram // www.instagram.com 双栈 且 post 请求 func Instagram(c *http.Client) model.Result { name := "Instagram Licensed Audio" - hostname := "instagram.com" + hostname := "www.instagram.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/KOCOWA.go b/transnation/KOCOWA.go index f85fa2b..79c39cf 100644 --- a/transnation/KOCOWA.go +++ b/transnation/KOCOWA.go @@ -2,18 +2,19 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // KOCOWA // www.kocowa.com 仅 ipv4 且 get 请求 func KOCOWA(c *http.Client) model.Result { name := "KOCOWA" - hostname := "kocowa.com" + hostname := "www.kocowa.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/MetaAI.go b/transnation/MetaAI.go index 8fc5887..7aef188 100644 --- a/transnation/MetaAI.go +++ b/transnation/MetaAI.go @@ -2,18 +2,19 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // MetaAI // www.meta.ai 双栈 且 get 请求 有问题 func MetaAI(c *http.Client) model.Result { name := "MetaAI" - hostname := "meta.ai" + hostname := "www.meta.ai" if c == nil { return model.Result{Name: name} } diff --git a/transnation/ParamountPlus.go b/transnation/ParamountPlus.go index c61a587..17a9505 100644 --- a/transnation/ParamountPlus.go +++ b/transnation/ParamountPlus.go @@ -2,18 +2,19 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // ParamountPlus // www.paramountplus.com 双栈 且 get 请求 func ParamountPlus(c *http.Client) model.Result { name := "Paramount+" - hostname := "paramountplus.com" + hostname := "www.paramountplus.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/PrimeVideo.go b/transnation/PrimeVideo.go index c210d94..fcd6a91 100644 --- a/transnation/PrimeVideo.go +++ b/transnation/PrimeVideo.go @@ -2,18 +2,19 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // PrimeVideo // www.primevideo.com 仅 ipv4 且 get 请求 func PrimeVideo(c *http.Client) model.Result { name := "Amazon Prime Video" - hostname := "primevideo.com" + hostname := "www.primevideo.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/SonyLiv.go b/transnation/SonyLiv.go index 1382832..0efa952 100644 --- a/transnation/SonyLiv.go +++ b/transnation/SonyLiv.go @@ -3,18 +3,19 @@ package transnation import ( "encoding/json" "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // SonyLiv // www.sonyliv.com 双栈 且 get 请求 - 有问题,获取不到地区 func SonyLiv(c *http.Client) model.Result { name := "SonyLiv" - hostname := "sonyliv.com" + hostname := "www.sonyliv.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/Spotify.go b/transnation/Spotify.go index 50ba890..8666826 100644 --- a/transnation/Spotify.go +++ b/transnation/Spotify.go @@ -3,18 +3,19 @@ package transnation import ( "encoding/json" "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // Spotify // spclient.wg.spotify.com 双栈 且 post 请求 func Spotify(c *http.Client) model.Result { name := "Spotify Registration" - hostname := "spotify.com" + hostname := "spclient.wg.spotify.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/TVBAnywhere.go b/transnation/TVBAnywhere.go index b0cc205..1a79a6b 100644 --- a/transnation/TVBAnywhere.go +++ b/transnation/TVBAnywhere.go @@ -3,18 +3,19 @@ package transnation import ( "encoding/json" "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // TVBAnywhere // uapisfm.tvbanywhere.com.sg 仅 ipv4 且 get 请求 func TVBAnywhere(c *http.Client) model.Result { name := "TVBAnywhere+" - hostname := "tvbanywhere.com.sg" + hostname := "uapisfm.tvbanywhere.com.sg" if c == nil { return model.Result{Name: name} } diff --git a/transnation/ViuCom.go b/transnation/ViuCom.go index 66105f9..592063f 100644 --- a/transnation/ViuCom.go +++ b/transnation/ViuCom.go @@ -2,17 +2,18 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // ViuCom // www.viu.com 仅 ipv4 且 get 请求 func ViuCom(c *http.Client) model.Result { name := "Viu.com" - hostname := "viu.com" + hostname := "www.viu.com" if c == nil { return model.Result{Name: name} } diff --git a/transnation/YouTube.go b/transnation/YouTube.go index 0dd9af8..f4144c1 100644 --- a/transnation/YouTube.go +++ b/transnation/YouTube.go @@ -2,18 +2,19 @@ package transnation import ( "fmt" - "github.com/oneclickvirt/UnlockTests/model" - "github.com/oneclickvirt/UnlockTests/utils" "io" "net/http" "strings" + + "github.com/oneclickvirt/UnlockTests/model" + "github.com/oneclickvirt/UnlockTests/utils" ) // Youtube // www.youtube.com 双栈 且 get 请求 func Youtube(c *http.Client) model.Result { name := "YouTube Region" - hostname := "youtube.com" + hostname := "www.youtube.com" if c == nil { return model.Result{Name: name} }