Handle 403

This commit is contained in:
AudriusButkevicius 2015-09-07 18:12:18 +01:00
parent eab5fd5bdd
commit d180bc794b
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ func poolHandler(pool string, uri *url.URL) {
}
time.Sleep(time.Minute)
continue
} else if resp.StatusCode == 403 {
if debug {
log.Println(pool, "failed to join due to IP address not matching external address")
}
return
} else if resp.StatusCode == 200 {
var x struct {
EvictionIn time.Duration `json:"evictionIn"`