Skip to content

Commit

Permalink
Merge pull request #1218 from yuhan6665/fix-sniffing2
Browse files Browse the repository at this point in the history
Fix sniffing default value again
  • Loading branch information
2dust authored Sep 7, 2021
2 parents 62d0951 + d9fb121 commit 2d5351e
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 2d5351e

Please # to comment.