Selaa lähdekoodia

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.
MHSanaei 16 tuntia sitten
vanhempi
sitoutus
5b5ac3f04b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      web/service/inbound.go

+ 1 - 1
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
 	}