fix vlass flow #474

This commit is contained in:
Alireza Ahmadi
2025-02-15 21:29:20 +01:00
parent 11215b96ae
commit a1e9ef00a1
2 changed files with 48 additions and 51 deletions
+3 -2
View File
@@ -126,9 +126,10 @@ func (j *JsonService) getOutbounds(clientConfig json.RawMessage, inbounds []*mod
protocol, _ := outbound["type"].(string)
config, _ := configs[protocol].(map[string]interface{})
for key, value := range config {
if key != "alterId" && key != "name" {
outbound[key] = value
if key == "name" || key == "alterId" || (key == "flow" && inData.TlsId == 0) {
continue
}
outbound[key] = value
}
var addrs []map[string]interface{}