From 1e31be8de0d1d5587348619225456a793cb30f7f Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 11 Oct 2019 14:25:39 -0600 Subject: reverse_proxy: Allow dynamic backends (closes #990 and #1539) This PR enables the use of placeholders in an upstream's Dial address. A Dial address must represent precisely one socket after replacements. See also #998 and #1639. --- listeners_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'listeners_test.go') diff --git a/listeners_test.go b/listeners_test.go index 11d3980..bdddf32 100644 --- a/listeners_test.go +++ b/listeners_test.go @@ -138,6 +138,10 @@ func TestJoinNetworkAddress(t *testing.T) { network: "unix", host: "/foo/bar", port: "", expect: "unix//foo/bar", }, + { + network: "", host: "::1", port: "1234", + expect: "[::1]:1234", + }, } { actual := JoinNetworkAddress(tc.network, tc.host, tc.port) if actual != tc.expect { -- cgit v1.2.3