From 5b5ac3f04b9291b66a9fb040f9aafbaff47bdb07 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 19 May 2026 17:02:26 +0200 Subject: [PATCH] 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. --- web/service/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/service/inbound.go b/web/service/inbound.go index 07f8d37a..0a996952 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -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 }