From d180bc794b56b660a98b412ff193a7fa15a570ef Mon Sep 17 00:00:00 2001 From: AudriusButkevicius Date: Mon, 7 Sep 2015 18:12:18 +0100 Subject: [PATCH] Handle 403 --- pool.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pool.go b/pool.go index 398b0c0a..0f327f69 100644 --- a/pool.go +++ b/pool.go @@ -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"`