Fix network timeout
This commit is contained in:
parent
ddd716a775
commit
2ad58f3542
@ -97,8 +97,8 @@ class MainHook : IXposedHookLoadPackage, IXposedHookZygoteInit {
|
|||||||
forceUrl = sp.getBoolean("forceUrl", false)
|
forceUrl = sp.getBoolean("forceUrl", false)
|
||||||
server = sp.getString("serverip", "") ?: ""
|
server = sp.getString("serverip", "") ?: ""
|
||||||
proxyList = sp.getBoolean("ProxyList", false)
|
proxyList = sp.getBoolean("ProxyList", false)
|
||||||
|
if (sp.getBoolean("KeepSSL", false)) sslHook(lpparam)
|
||||||
}
|
}
|
||||||
sslHook(lpparam)
|
|
||||||
hook()
|
hook()
|
||||||
findMethod(Activity::class.java, true) { name == "onCreate" }.hookBefore { param ->
|
findMethod(Activity::class.java, true) { name == "onCreate" }.hookBefore { param ->
|
||||||
activity = param.thisObject as Activity
|
activity = param.thisObject as Activity
|
||||||
@ -182,6 +182,16 @@ class MainHook : IXposedHookLoadPackage, IXposedHookZygoteInit {
|
|||||||
proxyList = b
|
proxyList = b
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
addView(Switch(activity).apply {
|
||||||
|
text = moduleRes.getString(R.string.KeepSSL)
|
||||||
|
isChecked = sp.getBoolean("KeepSSL", false)
|
||||||
|
setOnCheckedChangeListener { _, b ->
|
||||||
|
sp.edit().run {
|
||||||
|
putBoolean("KeepSSL", b)
|
||||||
|
apply()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
setPositiveButton(moduleRes.getString(R.string.Back)) { _, _ ->
|
setPositiveButton(moduleRes.getString(R.string.Back)) { _, _ ->
|
||||||
|
@ -10,8 +10,9 @@
|
|||||||
<string name="ProxyList">只代理列表内的地址 (需重启)</string>
|
<string name="ProxyList">只代理列表内的地址 (需重启)</string>
|
||||||
<string name="EnableTools">启用悬浮球工具</string>
|
<string name="EnableTools">启用悬浮球工具</string>
|
||||||
<string name="HookConfig">Hook 配置文件? (需重启)</string>
|
<string name="HookConfig">Hook 配置文件? (需重启)</string>
|
||||||
<string name="Tips2">强制模式: 强制替换全部域名\n\n请输入服务器地址: </string>
|
<string name="Tips2">强制模式: 强制替换全部域名\n请输入服务器地址: </string>
|
||||||
<string name="Back">返回</string>
|
<string name="Back">返回</string>
|
||||||
<string name="ExitGames">退出游戏</string>
|
<string name="ExitGames">退出游戏</string>
|
||||||
<string name="Settings">设置</string>
|
<string name="Settings">设置</string>
|
||||||
|
<string name="KeepSSL">跳过SSL证书检查(不稳定)(需重启)</string>
|
||||||
</resources>
|
</resources>
|
@ -9,8 +9,9 @@
|
|||||||
<string name="ProxyList">Only addresses in the proxy list (restart required)</string>
|
<string name="ProxyList">Only addresses in the proxy list (restart required)</string>
|
||||||
<string name="EnableTools">Enable tools</string>
|
<string name="EnableTools">Enable tools</string>
|
||||||
<string name="HookConfig">Hook profile? (restart required)</string>
|
<string name="HookConfig">Hook profile? (restart required)</string>
|
||||||
<string name="Tips2">Forced mode: Forced replacement of all domain names\n\nInput server address: </string>
|
<string name="Tips2">Forced mode: Forced replacement of all domain names\nInput server address: </string>
|
||||||
<string name="Back">Back</string>
|
<string name="Back">Back</string>
|
||||||
<string name="ExitGames">Exit games</string>
|
<string name="ExitGames">Exit games</string>
|
||||||
<string name="Settings">Settings</string>
|
<string name="Settings">Settings</string>
|
||||||
|
<string name="KeepSSL">Skip SSL certificate check (instable) (restart required)</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue
Block a user