mirror of
https://github.com/2dust/v2rayNG.git
synced 2026-11-03 19:54:30 +00:00
Fix sniffing default value again
I made a mistake, thought it would return null when key is not in storage, But it is found default "true" must be specified
This commit is contained in:
1 parent
62d0951a24
commit
d9fb121d67
1 file changed
+1
-1
@@ -101,7 +101,7 @@ object V2rayConfigUtil {
|
||||
v2rayConfig.inbounds[0].port = 10808
|
||||
val fakedns = settingsStorage?.decodeBool(AppConfig.PREF_FAKE_DNS_ENABLED)
|
||||
?: false
|
||||
val sniffAllTlsAndHttp = settingsStorage?.decodeBool(AppConfig.PREF_SNIFFING_ENABLED)
|
||||
val sniffAllTlsAndHttp = settingsStorage?.decodeBool(AppConfig.PREF_SNIFFING_ENABLED, true)
|
||||
?: true
|
||||
v2rayConfig.inbounds[0].sniffing?.enabled = fakedns || sniffAllTlsAndHttp
|
||||
if (!sniffAllTlsAndHttp) {
|
||||
|
||||
Reference in new issue
Block a user