Add new admin panel, failover, dns fallback, providers, limiters. Update XHTTP

This commit is contained in:
Sergei Maklagin
2026-05-11 00:59:35 +03:00
parent 652e0baf57
commit 3bd162ed6f
241 changed files with 36409 additions and 4086 deletions

View File

@@ -42,7 +42,7 @@ func (m *HysteriaManager) GetUserManagerTags() []string {
m.access.Lock()
defer m.access.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags

View File

@@ -42,7 +42,7 @@ func (m *Hysteria2Manager) GetUserManagerTags() []string {
m.access.Lock()
defer m.access.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags

View File

@@ -42,7 +42,7 @@ func (m *MTProxyManager) GetUserManagerTags() []string {
m.access.Lock()
defer m.access.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags

View File

@@ -42,7 +42,7 @@ func (m *TrojanManager) GetUserManagerTags() []string {
m.access.Lock()
defer m.access.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags

View File

@@ -42,7 +42,7 @@ func (m *TUICManager) GetUserManagerTags() []string {
m.access.Lock()
defer m.access.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags

View File

@@ -42,7 +42,7 @@ func (m *VLESSManager) GetUserManagerTags() []string {
m.access.Lock()
defer m.access.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags

View File

@@ -42,7 +42,7 @@ func (m *VMessManager) GetUserManagerTags() []string {
m.mtx.Lock()
defer m.mtx.Unlock()
tags := make([]string, 0, len(m.inbounds))
for tag, _ := range m.inbounds {
for tag := range m.inbounds {
tags = append(tags, tag)
}
return tags