add socks5 udp relay

This commit is contained in:
ginuerzh
2021-11-08 15:26:23 +08:00
parent 16f34d3e94
commit 10f53e18a0
12 changed files with 459 additions and 43 deletions

View File

@ -24,6 +24,11 @@ type LogConfig struct {
Format string
}
type ProfilingConfig struct {
Addr string
Enabled bool
}
type LoadbalancingConfig struct {
Strategy string
MaxFails int
@ -87,10 +92,11 @@ type NodeConfig struct {
}
type Config struct {
Log *LogConfig
Services []ServiceConfig
Chains []ChainConfig
Bypasses []BypassConfig
Log *LogConfig
Profiling *ProfilingConfig
Services []ServiceConfig
Chains []ChainConfig
Bypasses []BypassConfig
}
func (c *Config) Load() error {