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