update outbound

This commit is contained in:
WJQSERVER 2025-02-10 18:53:16 +08:00
parent 4c5d288f03
commit 2b7fbd2a0d
8 changed files with 139 additions and 46 deletions

View file

@ -13,7 +13,7 @@ type Config struct {
Blacklist BlacklistConfig
Whitelist WhitelistConfig
RateLimit RateLimitConfig
Proxy ProxyConfig
Outbound OutboundConfig
}
type ServerConfig struct {
@ -63,7 +63,12 @@ type RateLimitConfig struct {
Burst int `toml:"burst"`
}
type ProxyConfig struct {
/*
[outbound]
enabled = false
url = "socks5://127.0.0.1:1080" # "http://127.0.0.1:7890"
*/
type OutboundConfig struct {
Enabled bool `toml:"enabled"`
Url string `toml:"url"`
}

View file

@ -37,6 +37,6 @@ rateMethod = "total" # "ip" or "total"
ratePerMinute = 180
burst = 5
[proxy]
[outbound]
enabled = false
url = "socks5://127.0.0.1:1080" # "http://127.0.0.1:7890"