mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-17 22:19:42 +02:00
small refactoring
This commit is contained in:
@@ -11,7 +11,7 @@ type ProxyConfig struct {
|
||||
Path string // http proxy only
|
||||
PathMode string `yaml:"path_mode"` // http proxy only
|
||||
|
||||
provider *Provider
|
||||
provider *Provider
|
||||
}
|
||||
|
||||
func NewProxyConfig(provider *Provider) ProxyConfig {
|
||||
@@ -21,7 +21,7 @@ func NewProxyConfig(provider *Provider) ProxyConfig {
|
||||
}
|
||||
|
||||
// used by `GetFileProxyConfigs`
|
||||
func (cfg *ProxyConfig) SetDefault() error {
|
||||
func (cfg *ProxyConfig) SetDefaults() error {
|
||||
if cfg.Alias == "" {
|
||||
return fmt.Errorf("alias is required")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user