Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Resolve host name
Browse files Browse the repository at this point in the history
Closes #1415
  • Loading branch information
M66B committed Feb 22, 2014
1 parent 99af551 commit 3087b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Changelog
**Next release**

* Optimized *storage/open* restriction
* Display host name instead of IP address where possible ([issue](/../../issues/1415))

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/XIoBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected void before(XParam param) throws Throwable {
if (param.args.length > 2 && param.args[1] instanceof InetAddress) {
InetAddress address = (InetAddress) param.args[1];
int port = (Integer) param.args[2];
if (isRestrictedExtra(param, address.toString() + ":" + port))
if (isRestrictedExtra(param, address.getHostName() + ":" + port))
param.setThrowable(new SocketException("XPrivacy"));
}

Expand Down

0 comments on commit 3087b5e

Please sign in to comment.