diff options
author | sjlleo <[email protected]> | 2022-05-20 18:01:07 +0800 |
---|---|---|
committer | sjlleo <[email protected]> | 2022-05-20 18:01:07 +0800 |
commit | 474ca966f5310052d5581672595432fdf01107b5 (patch) | |
tree | b95387c970a0b59167be252d1e2edbffbfb764ab /verify/ipv6.go | |
parent | 997d7233dc0f07cefafd955ec19a829752cc44dd (diff) |
Fix: Network Unreachable Reminderv3.0-Alpha.2
Diffstat (limited to 'verify/ipv6.go')
-rw-r--r-- | verify/ipv6.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/verify/ipv6.go b/verify/ipv6.go index 07ff625..f6471b2 100644 --- a/verify/ipv6.go +++ b/verify/ipv6.go @@ -20,7 +20,7 @@ func (v *IPv6Verifier) Execute() *VerifyResponse { response.Type = 2 if v.IP, err = util.DnsResolver(6); err != nil { - response.StatusCode = -2 + response.StatusCode = NetworkUnrachable return &response } @@ -34,6 +34,9 @@ func (v *IPv6Verifier) Execute() *VerifyResponse { for i := 0; i < 3; i++ { switch res := <-v.unblockTestChan; { + case res.err != nil: + response.StatusCode = NetworkUnrachable + case res.CountryCode != "": switch res.movieID { case AreaAvailableID: |