@@ -88,37 +88,51 @@ Java_org_fptn_vpn_services_websocket_NativeWebSocketClientImpl_nativeCreate(
8888 fptn::protocol::https::CensorshipStrategy censorship_strategy =
8989 fptn::protocol::https::CensorshipStrategy::kSni ;
9090 if (censorship_strategy_name == " SNI" ) {
91- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSni ;
91+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSni ;
9292 } else if (censorship_strategy_name == " OBFUSCATION" ) {
9393 censorship_strategy = fptn::protocol::https::CensorshipStrategy::kTlsObfuscator ;
9494 } else if (censorship_strategy_name == " SNI-REALITY" ) { // deprecated
95- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityMode ;
95+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityMode ;
9696 }
9797 /* Chrome */
98- else if (censorship_strategy_name == " SNI-REALITY-CHROME-147" ) {
99- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome147 ;
98+ else if (censorship_strategy_name == " SNI-REALITY-CHROME-149" ) {
99+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome149 ;
100+ } else if (censorship_strategy_name == " SNI-REALITY-CHROME-148" ) {
101+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome148 ;
102+ } else if (censorship_strategy_name == " SNI-REALITY-CHROME-147" ) {
103+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome147 ;
100104 } else if (censorship_strategy_name == " SNI-REALITY-CHROME-146" ) {
101- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome146 ;
105+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome146 ;
102106 } else if (censorship_strategy_name == " SNI-REALITY-CHROME-145" ) {
103107 censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeChrome145 ;
104108 }
105109 /* Firefox */
106- else if (censorship_strategy_name == " SNI-REALITY-FIREFOX-149" ) {
110+ else if (censorship_strategy_name == " SNI-REALITY-FIREFOX-151" ) {
111+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeFirefox151 ;
112+ } else if (censorship_strategy_name == " SNI-REALITY-FIREFOX-150" ) {
113+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeFirefox150 ;
114+ } else if (censorship_strategy_name == " SNI-REALITY-FIREFOX-149" ) {
107115 censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeFirefox149 ;
108116 }
109117 /* Yandex */
110- else if (censorship_strategy_name == " SNI-REALITY-YANDEX-26" ) {
111- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeYandex26 ;
118+ else if (censorship_strategy_name == " SNI-REALITY-YANDEX-26-4" ) {
119+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeYandex26_4 ;
120+ } else if (censorship_strategy_name == " SNI-REALITY-YANDEX-26-3" ) {
121+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeYandex26_3 ;
112122 } else if (censorship_strategy_name == " SNI-REALITY-YANDEX-25" ) {
113123 censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeYandex25 ;
114124 } else if (censorship_strategy_name == " SNI-REALITY-YANDEX-24" ) {
115- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeYandex24 ;
125+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeYandex24 ;
116126 }
117127 /* Safari */
118- else if (censorship_strategy_name == " SNI-REALITY-SAFARI-26" ) {
119- censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeSafari26 ;
128+ else if (censorship_strategy_name == " SNI-REALITY-SAFARI-26-5" ) {
129+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeSafari26_5 ;
130+ } else if (censorship_strategy_name == " SNI-REALITY-SAFARI-26-4" ) {
131+ censorship_strategy = fptn::protocol::https::CensorshipStrategy::kSniRealityModeSafari26_4 ;
120132 }
121133
134+ SPDLOG_INFO (" Censorship strategy selected: {}" , censorship_strategy_name);
135+
122136 jobject global_object_ref = env->NewWeakGlobalRef (thiz);
123137 auto * websocket_client = new WrapperWebsocketClient (
124138 global_object_ref,
0 commit comments