fix: remove default up_mbps fallback to allow BBR

This commit is contained in:
cola-prince
2026-03-21 13:31:49 +08:00
parent 1ef0ffa60e
commit 0b099f60c5
-4
View File
@@ -167,13 +167,9 @@ func (s *ClashService) ConvertToClashMeta(outbounds *[]map[string]interface{}) (
case "hysteria", "hysteria2":
if _, ok := obMap["up_mbps"].(float64); ok {
proxy["up"] = obMap["up_mbps"]
} else {
proxy["up"] = 1000
}
if _, ok := obMap["down_mbps"].(float64); ok {
proxy["down"] = obMap["down_mbps"]
} else {
proxy["down"] = 1000
}
if t == "hysteria" {
proxy["auth-str"] = obMap["auth_str"]