Skip to content

Commit

Permalink
Fix sniffing default value again
Browse files Browse the repository at this point in the history
I made a mistake, thought it would return null when key is not in storage,
But it is found default "true" must be specified
  • Loading branch information
yuhan6665 committed Sep 3, 2021
1 parent 62d0951 commit d9fb121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d9fb121

Please sign in to comment.