Skip to content
Snippets Groups Projects
Commit c2c09f52 authored by Kr328's avatar Kr328
Browse files

Feature: enable sniff & disable tun for premium

parent a56b372a
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ var processors = []processor{ ...@@ -22,6 +22,8 @@ var processors = []processor{
patchProfile, patchProfile,
patchDns, patchDns,
patchProviders, patchProviders,
patchTun,
patchSniff,
validConfig, validConfig,
} }
......
//go:build !premium
package config
import "github.com/Dreamacro/clash/config"
func patchTun(cfg *config.RawConfig, _ string) error {
return nil
}
func patchSniff(cfg *config.RawConfig, _ string) error {
return nil
}
//go:build premium
package config
import "github.com/Dreamacro/clash/config"
func patchTun(cfg *config.RawConfig, _ string) error {
cfg.Tun.Enable = false
return nil
}
func patchSniff(cfg *config.RawConfig, _ string) error {
cfg.Experimental.SniffTLSSNI = true
return nil
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment