diff --git a/src/org/redkale/net/http/HttpRequest.java b/src/org/redkale/net/http/HttpRequest.java index 89f52bc3c..7f6e4c29e 100644 --- a/src/org/redkale/net/http/HttpRequest.java +++ b/src/org/redkale/net/http/HttpRequest.java @@ -441,18 +441,6 @@ public class HttpRequest extends Request { return host; } - protected InetSocketAddress parseSocketAddress(String host) { - if (host == null || host.isEmpty()) return null; - int pos = host.indexOf(':'); - String hostname = pos < 0 ? host : host.substring(0, pos); - int port = pos < 0 ? 80 : Integer.parseInt(host.substring(pos + 1)); - return new InetSocketAddress(hostname, port); - } - - protected InetSocketAddress getHostSocketAddress() { - return parseSocketAddress(host); - } - /** * 截取getRequestURI最后的一个/后面的部分 *