fix: parse config issues
This commit is contained in:
@@ -146,5 +146,6 @@ func DefaultConfigOptions() *ConfigOptions {
|
||||
EnablePadding: false,
|
||||
PaddingSize: "1200-1500",
|
||||
},
|
||||
UseXrayCoreWhenPossible: false,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ func patchWarp(base *option.Outbound, configOpt *ConfigOptions, final bool, stat
|
||||
var warpConfig *T.Outbound
|
||||
var err error
|
||||
|
||||
if configOpt == nil && (key == "p1" || key == "p2") {
|
||||
if (configOpt == nil || !final) && (key == "p1" || key == "p2") {
|
||||
warpConfig = base
|
||||
return nil
|
||||
} else if key == "p1" {
|
||||
|
||||
Reference in New Issue
Block a user