fix: UPF流量累计无效问题

This commit is contained in:
TsMask
2025-03-19 16:18:44 +08:00
parent 52da27fcb5
commit 20e6e855c3
3 changed files with 11 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ func DefaultRDB() *redis.Client {
// 获取实例
func RDB(source string) *redis.Client {
// 不指定时获取默认实例
if source == "" {
source = config.Get("redis.defaultDataSourceName").(string)
}
return rdbMap[source]
}