fix: panic in singbox
This commit is contained in:
@@ -67,7 +67,7 @@ func DefaultConfigOptions() *ConfigOptions {
|
||||
DirectDnsAddress: "1.1.1.1",
|
||||
DirectDnsDomainStrategy: option.DomainStrategy(dns.DomainStrategyAsIS),
|
||||
MixedPort: 2334,
|
||||
LocalDnsPort: 6450,
|
||||
LocalDnsPort: 16450,
|
||||
MTU: 9000,
|
||||
StrictRoute: true,
|
||||
TUNStack: "mixed",
|
||||
@@ -75,7 +75,7 @@ func DefaultConfigOptions() *ConfigOptions {
|
||||
URLTestInterval: option.Duration(10 * time.Minute),
|
||||
URLTestIdleTimeout: option.Duration(100 * time.Minute),
|
||||
EnableClashApi: true,
|
||||
ClashApiPort: 6756,
|
||||
ClashApiPort: 16756,
|
||||
EnableTun: true,
|
||||
SetSystemProxy: true,
|
||||
BypassLAN: false,
|
||||
|
||||
@@ -62,6 +62,9 @@ func patchOutboundTLSTricks(base option.Outbound, configOpt ConfigOptions, obj o
|
||||
|
||||
if outtls, ok := obj["tls"].(map[string]interface{}); ok {
|
||||
tlsTricks := tls.TLSTricks
|
||||
if tlsTricks == nil {
|
||||
tlsTricks = &option.TLSTricksOptions{}
|
||||
}
|
||||
tlsTricks.MixedCaseSNI = tlsTricks.MixedCaseSNI || configOpt.TLSTricks.EnableMixedSNICase
|
||||
|
||||
if configOpt.TLSTricks.EnablePadding {
|
||||
|
||||
Reference in New Issue
Block a user