1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

show explicit error to users with a incorrect fake DNS setting.

This commit is contained in:
Shelikhoo 2021-06-28 16:59:50 +01:00
parent 0cbb6d75f3
commit cf3688729e
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -46,7 +46,7 @@ func (fkdns *Holder) Start() error {
if fkdns.config != nil && fkdns.config.IpPool != "" && fkdns.config.LruSize != 0 {
return fkdns.initializeFromConfig()
}
return nil
return newError("invalid fakeDNS setting")
}
func (fkdns *Holder) Close() error {
@ -191,6 +191,8 @@ func (h *HolderMulti) Start() error {
if err := v.Start(); err != nil {
return newError("Cannot start all fake dns pools").Base(err)
}
} else {
return newError("invalid fakeDNS setting")
}
}
return nil