···122122 }
123123}
124124125125+func TestCacheProxyGuardAllowsPublicIPv4(t *testing.T) {
126126+ if err := refuseSpecialPurposeAddrs("tcp", "104.26.13.82:443", nil); err != nil {
127127+ t.Fatalf("public IPv4 address was blocked: %v", err)
128128+ }
129129+}
130130+125131func TestCacheProxyGuardedUpstreamCannotReachBlockedRanges(t *testing.T) {
126132 // httptest listens on 127.0.0.1, which is in the blocked ranges; reaching
127133 // it would mean a workflow-defined cache can hit the host's loopback