Skip to content

Commit c130570

Browse files
committed
Fix bug in port config Frida script generation
1 parent 0a3906e commit c130570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interceptors/frida/frida-scripts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function buildFridaConfig(
1414
return configScriptTemplate
1515
.replace(/(?<=const CERT_PEM = `)[^`]+(?=`)/s, caCertContent.trim())
1616
.replace(/(?<=const PROXY_HOST = ')[^']+(?=')/, proxyHost)
17-
.replace(/(?<=const PROXY_PORT = ')\d+(?=;)/, proxyPort.toString());
17+
.replace(/(?<=const PROXY_PORT = )\d+(?=;)/, proxyPort.toString());
1818
}
1919

2020
export async function buildAndroidFridaScript(

0 commit comments

Comments
 (0)