summaryrefslogtreecommitdiff
path: root/verify/ipv6.go
diff options
context:
space:
mode:
Diffstat (limited to 'verify/ipv6.go')
-rw-r--r--verify/ipv6.go5
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: