add customTarget

This commit is contained in:
wjqserver 2025-05-16 00:15:04 +08:00
parent 4ded2186d8
commit 052243b095
3 changed files with 17 additions and 9 deletions

View file

@ -174,10 +174,12 @@ type OutboundConfig struct {
[docker]
enabled = false
target = "ghcr" # ghcr/dockerhub
customTarget = "" # 自定义host(不带协议头)
*/
type DockerConfig struct {
Enabled bool `toml:"enabled"`
Target string `toml:"target"`
Enabled bool `toml:"enabled"`
Target string `toml:"target"`
CustomTarget string `toml:"customTarget"`
}
// LoadConfig 从 TOML 配置文件加载配置

View file

@ -70,4 +70,5 @@ url = "socks5://127.0.0.1:1080" # "http://127.0.0.1:7890"
[docker]
enabled = false
target = "ghcr" # ghcr/dockerhub
target = "ghcr" # ghcr/dockerhub
customTarget = "" # 自定义host(不带协议头)