From 18b532e6c86bee787ceeca029322763bc97a1b35 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 8 Sep 2026 13:52:17 +0200 Subject: [PATCH] Improve handling of possible NPE in the iOS script This doesn't actually fix anything - but does ensure it would fail at the right point, rather than imploding unpredictably later on. --- ios/ios-connect-hook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/ios-connect-hook.js b/ios/ios-connect-hook.js index 748ffb7..a2d30ef 100644 --- a/ios/ios-connect-hook.js +++ b/ios/ios-connect-hook.js @@ -26,7 +26,7 @@ waitForModule('libnetwork.dylib', (libnetwork) => { // This is the method to make a new endpoint to connect to: // https://developer.apple.com/documentation/network/2976720-nw_endpoint_create_host (iOS 12+) const nw_endpoint_create_host = new NativeFunction( - libnetwork.findExportByName('nw_endpoint_create_host'), + libnetwork.getExportByName('nw_endpoint_create_host'), 'pointer', ['pointer', 'pointer'] );