mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
update outbound
This commit is contained in:
parent
4c5d288f03
commit
2b7fbd2a0d
8 changed files with 139 additions and 46 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue