fixing some functions

This commit is contained in:
2026-06-04 17:32:11 +07:00
parent 2a79993f43
commit b933cbe9ee
6 changed files with 847 additions and 20 deletions
+8
View File
@@ -5,6 +5,7 @@ type Config struct {
Mapping map[string]string
WellKnownDir string
NFS NFSConfig
Streams map[string]StreamConfig
}
type CA struct {
@@ -19,3 +20,10 @@ type NFSConfig struct {
MountPoint string `toml:"mount_point"`
Options string `toml:"options"`
}
// StreamConfig описывает конфигурацию UDP/TCP стрима
type StreamConfig struct {
Protocol string `toml:"protocol"` // "tcp" или "udp"
Target string `toml:"target"` // целевой адрес в формате "host:port"
Timeout int `toml:"timeout"` // таймаут в секундах (опционально, по умолчанию 300)
}