Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend
24 changes: 24 additions & 0 deletions service/inbounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ func (s *InboundService) addUsers(db *gorm.DB, inboundJson []byte, inboundId uin
return nil, err
}

// Remove multiplex if any user has xtls-rprx-vision flow (they are incompatible)
if inboundType == "vless" {
if users, ok := inbound["users"].([]json.RawMessage); ok {
for _, user := range users {
if strings.Contains(string(user), "xtls-rprx-vision") {
delete(inbound, "multiplex")
break
}
}
}
}

return json.Marshal(inbound)
}

Expand All @@ -325,6 +337,18 @@ func (s *InboundService) initUsers(db *gorm.DB, inboundJson []byte, clientIds st
return nil, err
}

// Remove multiplex if any user has xtls-rprx-vision flow (they are incompatible)
if inboundType == "vless" {
if users, ok := inbound["users"].([]json.RawMessage); ok {
for _, user := range users {
if strings.Contains(string(user), "xtls-rprx-vision") {
delete(inbound, "multiplex")
break
}
}
}
}

return json.Marshal(inbound)
}

Expand Down