Skip to content

Commit

Permalink
update ip
Browse files Browse the repository at this point in the history
  • Loading branch information
sxci committed Nov 13, 2020
1 parent 1dc3aa7 commit 7e5dfac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/com/qiniu/http/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ public okhttp3.Response intercept(Chain chain) throws IOException {
Request request = chain.request();
okhttp3.Response response = chain.proceed(request);
IpTag tag = (IpTag) request.tag();
if (tag.ip != null && tag.ip.length() > 5) {
return response;
}
try {
tag.ip = chain.connection().socket().getRemoteSocketAddress() + "";
} catch (Exception e) {
Expand Down

0 comments on commit 7e5dfac

Please sign in to comment.