diff --git a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java index eb5827d52..aaa0f9d97 100644 --- a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java +++ b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java @@ -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();