mirror of
https://github.com/fatedier/frp.git
synced 2026-03-20 08:49:16 +08:00
cmd: add verify command to verify if config file syntax is valid (#2389)
This commit is contained in:
@@ -274,7 +274,7 @@ func NewProxyConfFromIni(prefix, name string, section *ini.Section) (ProxyConf,
|
||||
|
||||
conf := DefaultProxyConf(proxyType)
|
||||
if conf == nil {
|
||||
return nil, fmt.Errorf("proxy [%s] type [%s] error", name, proxyType)
|
||||
return nil, fmt.Errorf("proxy %s has invalid type [%s]", name, proxyType)
|
||||
}
|
||||
|
||||
if err := conf.UnmarshalFromIni(prefix, name, section); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user