Skip to content

Commit

Permalink
Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed May 7, 2019
1 parent a2210e3 commit 3566391
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGE_VERSION = 0.0.6.6-1
PACKAGE_VERSION = 0.0.6.6-2

TARGET = iphone:clang:latest:9.0

Expand Down
14 changes: 7 additions & 7 deletions Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ void proxy_mDNSExit(int arg0) {
%end

%ctor {
mDNS_StatusCallback_allocated = (unsigned int *)PSFindSymbolCompat(NULL, "_mDNS_StatusCallback.allocated");
mDNS_StatusCallback_allocated = (unsigned int *)PSFindSymbolReadableCompat(NULL, "_mDNS_StatusCallback.allocated");
if (mDNS_StatusCallback_allocated) {
// mDNSResponder (_mDNSResponder)
HBLogDebug(@"LetMeBlock: run on mDNSResponder");
_PSHookFunction(NULL, "_mDNS_StatusCallback", mDNS_StatusCallback);
_PSHookFunction(MSGetImageByName("/usr/lib/system/libsystem_darwin.dylib"), "_os_variant_has_internal_diagnostics", os_variant_has_internal_diagnostics);
_PSHookFunction(MSGetImageByName("/usr/lib/system/libsystem_c.dylib"), "_fopen", fopen);
_PSHookFunction(MSGetImageByName("/usr/lib/system/libsystem_kernel.dylib"), "_open", open);
_PSHookFunctionCompat(NULL, "_mDNS_StatusCallback", mDNS_StatusCallback);
_PSHookFunctionCompat("/usr/lib/system/libsystem_darwin.dylib", "_os_variant_has_internal_diagnostics", os_variant_has_internal_diagnostics);
_PSHookFunctionCompat("/usr/lib/system/libsystem_c.dylib", "_fopen", fopen);
_PSHookFunctionCompat("/usr/lib/system/libsystem_kernel.dylib", "_open", open);
%init(mDNSResponder);
} else {
// mDNSResponderHelper (root)
Expand Down Expand Up @@ -130,8 +130,8 @@ void proxy_mDNSExit(int arg0) {
if (processes)
free(processes);
}
_PSHookFunction(NULL, "_proxy_mDNSExit", proxy_mDNSExit);
_PSHookFunction(NULL, "___accept_client_block_invoke", __accept_client_block_invoke);
_PSHookFunctionCompat(NULL, "_proxy_mDNSExit", proxy_mDNSExit);
_PSHookFunctionCompat(NULL, "___accept_client_block_invoke", __accept_client_block_invoke);
%init(mDNSResponderHelper);
}
}
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: com.ps.letmeblock
Name: LetMeBlock
Depends: mobilesubstrate, firmware (>= 9.0), com.ps.libsubstitrate
Depends: mobilesubstrate, firmware (>= 9.0), com.ps.libsubstitrate (>= 0.0.1-2)
Version: 0.0.1
Architecture: iphoneos-arm
Description: Make mDNSResponder care more about /etc/hosts
Expand Down

0 comments on commit 3566391

Please sign in to comment.