Update outbound.go
This commit is contained in:
@@ -20,8 +20,8 @@ func patchOutboundMux(base option.Outbound, configOpt ConfigOptions, obj outboun
|
|||||||
Protocol: configOpt.MuxProtocol,
|
Protocol: configOpt.MuxProtocol,
|
||||||
}
|
}
|
||||||
obj["multiplex"] = multiplex
|
obj["multiplex"] = multiplex
|
||||||
} else {
|
// } else {
|
||||||
delete(obj, "multiplex")
|
// delete(obj, "multiplex")
|
||||||
}
|
}
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
@@ -41,8 +41,8 @@ func patchOutboundTLSTricks(base option.Outbound, configOpt ConfigOptions, obj o
|
|||||||
|
|
||||||
if tlsTricks.MixedCaseSNI || tlsTricks.PaddingMode != "" {
|
if tlsTricks.MixedCaseSNI || tlsTricks.PaddingMode != "" {
|
||||||
tls["tls_tricks"] = tlsTricks
|
tls["tls_tricks"] = tlsTricks
|
||||||
} else {
|
// } else {
|
||||||
tls["tls_tricks"] = nil
|
// tls["tls_tricks"] = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj
|
return obj
|
||||||
@@ -56,8 +56,8 @@ func patchOutboundFragment(base option.Outbound, configOpt ConfigOptions, obj ou
|
|||||||
Sleep: configOpt.TLSTricks.FragmentSleep,
|
Sleep: configOpt.TLSTricks.FragmentSleep,
|
||||||
}
|
}
|
||||||
obj["tls_fragment"] = tlsFragment
|
obj["tls_fragment"] = tlsFragment
|
||||||
} else {
|
// } else {
|
||||||
obj["tls_fragment"] = nil
|
// obj["tls_fragment"] = nil
|
||||||
}
|
}
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user