less client things removal
This commit is contained in:
1 parent
c5148e138d
commit
1b8a67cecb
2 files changed
+4
-8
No files matched your search
@@ -16,18 +16,13 @@ abstract final class AppConfig {
|
||||
static String get hivemindApiBase => 'https://$serverDomain/api';
|
||||
|
||||
// ── Reality (VPN tunnel) ──────────────────────────────────────────────
|
||||
/// TLS camouflage — which site the Reality tunnel impersonates.
|
||||
/// Server overrides this per session from REALITY_SNI_POOL.
|
||||
/// www.microsoft.com — classic, never blocked
|
||||
/// cloudflare.com — CDN, clean TLS
|
||||
/// yandex.ru — Russian, absolutely never blocked in Russia
|
||||
static const String realitySni = 'www.microsoft.com'; // ◄── REPLACE
|
||||
/// The server picks a random SNI per session from REALITY_SNI_POOL.
|
||||
/// The client does NOT hardcode one — server is always the source of truth.
|
||||
|
||||
/// TLS fingerprint: chrome | firefox | safari | random
|
||||
static const String realityFp = 'chrome';
|
||||
|
||||
// These are normally overridden by /session/status response fields.
|
||||
// The constants below serve as fallbacks if the server doesn't provide them.
|
||||
static const String vlessSecurity = 'reality';
|
||||
static const String vlessType = 'tcp';
|
||||
static const String vlessFlow = 'xtls-rprx-vision';
|
||||
|
||||
@@ -72,7 +72,8 @@ class HivemindService {
|
||||
final vlessPort = data['vless_port'] ?? 8443;
|
||||
final pbk = data['reality_pbk'] ?? '';
|
||||
final sid = data['reality_sid'] ?? '';
|
||||
final sni = data['reality_sni'] ?? AppConfig.realitySni;
|
||||
final sni = data['reality_sni'];
|
||||
if (sni == null) throw Exception('Server did not provide reality_sni');
|
||||
final fp = data['reality_fp'] ?? AppConfig.realityFp;
|
||||
|
||||
final vlessUrl = 'vless://$vlessUuid@$vlessIp:$vlessPort'
|
||||
|
||||
Reference in new issue
Block a user