diff --git a/README.md b/README.md
index 61d4dbf..5ee6baa 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ Proxyee is a JAVA written HTTP proxy server library that supports HTTP, HTTPS, W
com.github.monkeywie
proxyee
- 1.6.8
+ 1.6.9
```
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 130b049..5d031d5 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -25,7 +25,7 @@ Proxyee 是一个 JAVA 编写的 HTTP 代理服务器类库,支持 HTTP、HTTP
com.github.monkeywie
proxyee
- 1.6.8
+ 1.6.9
```
diff --git a/pom.xml b/pom.xml
index 59eb9d5..442f75f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.github.monkeywie
proxyee
- 1.6.8
+ 1.6.9
jar
@@ -151,7 +151,7 @@
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.8
+ 1.6.9
true
releases
diff --git a/src/main/java/com/github/monkeywie/proxyee/util/ProtoUtil.java b/src/main/java/com/github/monkeywie/proxyee/util/ProtoUtil.java
index d62c708..380fe60 100644
--- a/src/main/java/com/github/monkeywie/proxyee/util/ProtoUtil.java
+++ b/src/main/java/com/github/monkeywie/proxyee/util/ProtoUtil.java
@@ -34,7 +34,7 @@ public static RequestProto getRequestProto(HttpRequest httpRequest) {
return null;
}
- requestProto.setHost(url.getHost());
+ requestProto.setHost(url.getHost().isEmpty() ? httpRequest.headers().get(HttpHeaderNames.HOST) : url.getHost());
requestProto.setPort(url.getPort() != -1 ? url.getPort() : url.getDefaultPort());
requestProto.setProxy(httpRequest.headers().contains(HttpHeaderNames.PROXY_CONNECTION));
return requestProto;