fix(migrate): include hysteria, hysteria2, shadowsocks in client sync

The MigrationRequirements protocol filter only covered vmess/vless/trojan,
so orphaned clients in hysteria/hysteria2/shadowsocks inbounds were never
synced into the relational clients table on startup.
This commit is contained in:
MHSanaei
2026-05-19 17:02:26 +02:00
parent 3827d7d061
commit 5b5ac3f04b

View File

@@ -2845,7 +2845,7 @@ func (s *InboundService) MigrationRequirements() {
// Fix inbounds based problems
var inbounds []*model.Inbound
err = tx.Model(model.Inbound{}).Where("protocol IN (?)", []string{"vmess", "vless", "trojan"}).Find(&inbounds).Error
err = tx.Model(model.Inbound{}).Where("protocol IN (?)", []string{"vmess", "vless", "trojan", "shadowsocks", "hysteria", "hysteria2"}).Find(&inbounds).Error
if err != nil && err != gorm.ErrRecordNotFound {
return
}