mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix proxy bug in dev server
This commit is contained in:
parent
78c55437e3
commit
e404e2d37f
|
@ -257,7 +257,7 @@ public class CodeServlet extends HttpServlet {
|
|||
try {
|
||||
URL url = new URL(proxyUrl);
|
||||
proxyPort = url.getPort();
|
||||
proxyHost = proxyPort != 80 ? url.getHost() + ":" + proxyPort : url.getHost();
|
||||
proxyHost = proxyPort >= 0 ? url.getHost() + ":" + proxyPort : url.getHost();
|
||||
proxyProtocol = url.getProtocol();
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
|
Loading…
Reference in New Issue
Block a user