diff options
author | sjlleo <[email protected]> | 2022-05-21 17:17:33 +0800 |
---|---|---|
committer | sjlleo <[email protected]> | 2022-05-21 17:17:33 +0800 |
commit | ed8f48835c9edc17a417abb8f6d472b20e5cff6d (patch) | |
tree | 4951e89e18ae7f552230460e89e22b900ee5ae0b /verify | |
parent | cd8251b93bd992824665a0b6111cee889189c1d4 (diff) |
Add: proxy modulev3.1.0
Diffstat (limited to 'verify')
-rw-r--r-- | verify/ipv4.go | 2 | ||||
-rw-r--r-- | verify/ipv6.go | 2 | ||||
-rw-r--r-- | verify/verify.go | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/verify/ipv4.go b/verify/ipv4.go index 89a0763..b7275b3 100644 --- a/verify/ipv4.go +++ b/verify/ipv4.go @@ -78,7 +78,7 @@ func (v *IPv4Verifier) upgradeStatus(status int) { func (v *IPv4Verifier) UnblockTest(MoiveID int) { testURL := NetflixURL_PREFIX + strconv.Itoa(MoiveID) - if reCode, err := util.RequestIP(testURL, v.IP, v.LocalAddr); err != nil { + if reCode, err := util.RequestIP(testURL, v.IP, v.LocalAddr, v.Proxy); err != nil { if err.Error() == "Banned" { v.unblockTestChan <- UnblockTestResult{MoiveID, "", nil} } else { diff --git a/verify/ipv6.go b/verify/ipv6.go index 2da879d..e39455b 100644 --- a/verify/ipv6.go +++ b/verify/ipv6.go @@ -78,7 +78,7 @@ func (v *IPv6Verifier) upgradeStatus(status int) { func (v *IPv6Verifier) UnblockTest(MoiveID int) { testURL := NetflixURL_PREFIX + strconv.Itoa(MoiveID) - if reCode, err := util.RequestIP(testURL, v.IP, v.LocalAddr); err != nil { + if reCode, err := util.RequestIP(testURL, v.IP, v.LocalAddr, v.Proxy); err != nil { if err.Error() == "Banned" { v.unblockTestChan <- UnblockTestResult{MoiveID, "", nil} } else { diff --git a/verify/verify.go b/verify/verify.go index 38e2f60..ddf7db7 100644 --- a/verify/verify.go +++ b/verify/verify.go @@ -32,6 +32,7 @@ type VerifyResult struct { type Config struct { LocalAddr string Custom string + Proxy string } type VerifyResponse struct { |