Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
torsocks: add patch for ipv4 and enable package (#650)
- Loading branch information
1 parent
3d8a22f
commit 2c0f14b
Showing
6 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ./src/lib/gethostbyname.c 2016-10-18 22:14:01.000000000 +0530 | ||
+++ ../gethostbyname.c 2016-12-22 10:14:38.497288603 +0530 | ||
@@ -74,7 +74,7 @@ | ||
|
||
/* Man page specifies that it can either be an hostname or IPv4 address. | ||
* If it's an address, go with it else try to resolve it through Tor. */ | ||
- if (utils_is_address_ipv4(name)) { | ||
+ if (utils_is_address_ipv4(name) == 1) { | ||
if (inet_pton(AF_INET, name, &ip) <= 0) { | ||
goto error; | ||
} |
File renamed without changes.
File renamed without changes.