Skip to content

Commit 0f89805

Browse files
committed
show warning when tunnel is unable to reach upstream
1 parent abee8c3 commit 0f89805

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
3.3
2+
* Update Dependencies
3+
* Show warning when Tunnel is unable to reach upstream
4+
15
3.2
26
* Update Dependencies
37

src/main/java/com/testingbot/tunnel/proxy/TunnelProxyServlet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public void onComplete(Result result)
7171
Logger.getLogger(TunnelProxyServlet.class.getName()).log(Level.INFO, sb.toString());
7272
}
7373
}
74+
if (result.isFailed() && !request.getRequestURL().toString().contains("squid-internal")) {
75+
Logger.getLogger(TunnelProxyServlet.class.getName()).log(Level.SEVERE, "Local proxy received a connection failure from upstream. Make sure the website you want to test is accessible from this machine.");
76+
}
7477
super.onComplete(result);
7578
}
7679
}

0 commit comments

Comments
 (0)