1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-17 18:00:27 +08:00

feat: add http3 & optimize conn

This commit is contained in:
源文雨
2025-10-27 22:47:46 +08:00
parent b66c0ae3cf
commit 1d07d1e19e
8 changed files with 246 additions and 18 deletions

View File

@@ -89,6 +89,14 @@ type List struct {
b map[string][]string
}
// NewEmptyList ...
func NewEmptyList() *List {
return &List{
m: make(map[string][]*dnsstat, 64),
b: make(map[string][]string, 64),
}
}
// Config is the user config
type Config struct {
Servers map[string][]string `yaml:"Servers"` // Servers map[dot.com]ip:ports