@@ -130,39 +130,39 @@ func (c *caddyTestServer) StartTestServer() {
130
130
}
131
131
132
132
func TestMain (m * testing.M ) {
133
- caddyForwardProxy = caddyTestServer {addr : "127.0.0.2 :1984" , root : "./test/forwardproxy" ,
133
+ caddyForwardProxy = caddyTestServer {addr : "127.0.19.84 :1984" , root : "./test/forwardproxy" ,
134
134
directives : []string {"tls self_signed" },
135
135
proxyEnabled : true , proxyDirectives : []string {"serve_pac" ,
136
136
"acl {\n allow all\n }" }}
137
137
caddyForwardProxy .StartTestServer ()
138
138
139
- caddyForwardProxyAuth = caddyTestServer {addr : "127.0.0.2 :4891" , root : "./test/forwardproxy" ,
139
+ caddyForwardProxyAuth = caddyTestServer {addr : "127.0.0.1 :4891" , root : "./test/forwardproxy" ,
140
140
directives : []string {"tls self_signed" },
141
141
proxyEnabled : true , proxyDirectives : []string {"basicauth test pass" ,
142
142
"acl {\n allow all\n }" }}
143
143
caddyForwardProxyAuth .StartTestServer ()
144
144
145
- caddyHTTPForwardProxyAuth = caddyTestServer {addr : "127.0.0.2 :6973" , root : "./test/forwardproxy" ,
145
+ caddyHTTPForwardProxyAuth = caddyTestServer {addr : "127.0.69.73 :6973" , root : "./test/forwardproxy" ,
146
146
directives : []string {"tls off" },
147
147
proxyEnabled : true , proxyDirectives : []string {"basicauth test pass" ,
148
148
"acl {\n allow all\n }" }}
149
149
caddyHTTPForwardProxyAuth .StartTestServer ()
150
150
151
- caddyForwardProxyProbeResist = caddyTestServer {addr : "127.0.0.2 :8888" , root : "./test/forwardproxy" ,
151
+ caddyForwardProxyProbeResist = caddyTestServer {addr : "127.0.88.88 :8888" , root : "./test/forwardproxy" ,
152
152
directives : []string {"tls self_signed" }, HTTPRedirectPort : "8880" ,
153
153
proxyEnabled : true , proxyDirectives : []string {"basicauth test pass" ,
154
154
"probe_resistance test.localhost" ,
155
155
"serve_pac superhiddenfile.pac" ,
156
156
"acl {\n allow all\n }" }}
157
157
caddyForwardProxyProbeResist .StartTestServer ()
158
158
159
- caddyDummyProbeResist = caddyTestServer {addr : "127.0.0.2 :9999" , root : "./test/forwardproxy" ,
159
+ caddyDummyProbeResist = caddyTestServer {addr : "127.0.99.99 :9999" , root : "./test/forwardproxy" ,
160
160
directives : []string {"tls self_signed" }, HTTPRedirectPort : "9980" ,
161
161
proxyEnabled : false }
162
162
caddyDummyProbeResist .StartTestServer ()
163
163
164
164
// 127.0.0.1 and localhost are both used to avoid Caddy matching and routing proxy requests internally
165
- caddyTestTarget = caddyTestServer {addr : "localhost :6451" , root : "./test/index" ,
165
+ caddyTestTarget = caddyTestServer {addr : "127.0.64.51 :6451" , root : "./test/index" ,
166
166
directives : []string {},
167
167
proxyEnabled : false }
168
168
caddyTestTarget .StartTestServer ()
@@ -172,26 +172,26 @@ func TestMain(m *testing.M) {
172
172
proxyEnabled : false }
173
173
caddyHTTPTestTarget .StartTestServer ()
174
174
175
- caddyAuthedUpstreamEnter = caddyTestServer {addr : "127.0.0.2 :6585" , root : "./test/upstreamingproxy" ,
175
+ caddyAuthedUpstreamEnter = caddyTestServer {addr : "127.0.65.25 :6585" , root : "./test/upstreamingproxy" ,
176
176
directives : []string {"tls self_signed" },
177
177
proxyEnabled :
true ,
proxyDirectives : []
string {
"upstream https://test:[email protected] :4891" ,
178
178
"basicauth upstreamtest upstreampass" }}
179
179
caddyAuthedUpstreamEnter .StartTestServer ()
180
180
181
- caddyForwardProxyWhiteListing = caddyTestServer {addr : "127.0.0.2 :8776" , root : "./test/forwardproxy" ,
181
+ caddyForwardProxyWhiteListing = caddyTestServer {addr : "127.0.87.76 :8776" , root : "./test/forwardproxy" ,
182
182
directives : []string {"tls self_signed" },
183
- proxyEnabled : true , proxyDirectives : []string {"acl {\n allow localhost \n deny all\n }" ,
183
+ proxyEnabled : true , proxyDirectives : []string {"acl {\n allow 127.0.64.51 \n deny all\n }" ,
184
184
"ports 6451" }}
185
185
caddyForwardProxyWhiteListing .StartTestServer ()
186
186
187
- caddyForwardProxyBlackListing = caddyTestServer {addr : "127.0.0.2 :6676" , root : "./test/forwardproxy" ,
187
+ caddyForwardProxyBlackListing = caddyTestServer {addr : "127.0.66.76 :6676" , root : "./test/forwardproxy" ,
188
188
directives : []string {"tls self_signed" },
189
189
proxyEnabled : true , proxyDirectives : []string {"acl {\n deny " + blacklistedIPv4 + "/30\n " +
190
190
"deny " + blacklistedIPv6 + "\n allow all\n }" },
191
191
}
192
192
caddyForwardProxyBlackListing .StartTestServer ()
193
193
194
- caddyForwardProxyNoBlacklistOverride = caddyTestServer {addr : "127.0.0.2 :6679" , root : "./test/forwardproxy" ,
194
+ caddyForwardProxyNoBlacklistOverride = caddyTestServer {addr : "127.0.66.79 :6679" , root : "./test/forwardproxy" ,
195
195
directives : []string {"tls self_signed" },
196
196
proxyEnabled : true , proxyDirectives : []string {}}
197
197
caddyForwardProxyNoBlacklistOverride .StartTestServer ()
0 commit comments