#html#ech#fail2ban#http#mixed#ml_dsa_65#ml_kem_768#post_quantum#reality#shadowsocks#shadowsocks2022#tls#trojan#tunnel#vless#vmess#wireguard#x25519#xtls_rprx_vision#xtls_rprx_vision_udp443
3X-UI is an easy-to-use, open-source web control panel for managing Xray-core VPN servers. It supports many VPN protocols like VMess, VLESS, Shadowsocks, Trojan, and WireGuard, letting you configure, monitor traffic, manage users, and set limits through a simple web interface. It includes features like automatic SSL certificates, traffic statistics, multi-user support, and security options such as firewall rules and IP bans. This makes managing VPN servers faster, more secure, and accessible even if you are not an expert, helping you control your VPN setup efficiently and safely.
https://github.com/MHSanaei/3x-ui
🚀 Вышел стабильный JavaScript движок от Google для Android
Новая стабильная библиотека Jetpack JavaScript Engine позволит разработчикам выполнять JS код в изолированной и ограниченной среде.
class MainActivity : ComponentActivity() {
// Теперь nullable, без lateinit
private var jsSandbox: JavaScriptSandbox? = null
private var jsIsolate: JavaScriptIsolate? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (!JavaScriptSandbox.isSupported()) {
Log.e("JS", "JavaScriptSandbox не поддерживается")
return
}
lifecycleScope.launch {
// Создаём и сохраняем в nullable-поле
jsSandbox = JavaScriptSandbox
.createConnectedInstanceAsync(applicationContext)
.await()
jsIsolate = jsSandbox?.createIsolate()
// При выполнении гарантируем, что jsIsolate != null
val result: String = jsIsolate
?.evaluateJavaScriptAsync(JS_SCRIPT_SCRING)
?.await()
?: "Ошибка: isolate не инициализирован"
Log.d("JS", "Результат выполнения: $result")
}
}
override fun onDestroy() {
super.onDestroy()
// Закрываем только если не null
jsIsolate?.close()
jsSandbox?.close()
}
}
#jetpack#js