Skip to content

Commit

Permalink
iptag would not be null
Browse files Browse the repository at this point in the history
  • Loading branch information
sxci committed Nov 13, 2020
1 parent 002bf03 commit af316fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/qiniu/http/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ public Client(final Dns dns, final boolean hostFirst, final ProxyConfiguration p
@Override
public void connectStart(Call call, InetSocketAddress inetSocketAddress, Proxy proxy) {
Request req = call.request();
if (req != null) {
IpTag tag = (IpTag) req.tag();
tag.ip = inetSocketAddress + "";
}
IpTag tag = (IpTag) req.tag();
tag.ip = inetSocketAddress + "";
}
});
builder.addInterceptor(new Interceptor() {
Expand Down

0 comments on commit af316fe

Please sign in to comment.