Skip to content

Commit

Permalink
URL encode local IP address in HTTP tracker request
Browse files Browse the repository at this point in the history
  • Loading branch information
atomashpolskiy committed Aug 7, 2017
1 parent a27657a commit 1d7e6b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private String buildQuery(TrackerRequestType eventType, TrackerRequestBuilder re
InetAddress inetAddress = peer.getInetAddress();
if (inetAddress != null) {
buf.append("&ip=");
buf.append(inetAddress.getHostAddress());
buf.append(urlEncode(inetAddress.getHostAddress().getBytes()));
}

buf.append("&port=");
Expand Down

0 comments on commit 1d7e6b0

Please sign in to comment.