Skip to content

Commit e7cd461

Browse files
committed
Add small Frida script fix
1 parent 5cae60f commit e7cd461

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overrides/frida/ios/ios-connect-hook.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ const nw_endpoint_create_host = new NativeFunction(
2929
'pointer', ['pointer', 'pointer']
3030
);
3131

32+
const newHostStr = Memory.allocUtf8String(PROXY_HOST);
33+
const newPortStr = Memory.allocUtf8String(PROXY_PORT.toString());
34+
3235
Interceptor.attach(nw_connection_create, {
3336
onEnter: function (args) {
34-
const newHostStr = Memory.allocUtf8String(PROXY_HOST);
35-
const newPortStr = Memory.allocUtf8String(PROXY_PORT.toString());
36-
3737
// Replace the endpoint argument entirely with our own:
3838
args[0] = nw_endpoint_create_host(newHostStr, newPortStr);
3939
}

0 commit comments

Comments
 (0)