Commit d8f85c8b authored by zhiqiangxu's avatar zhiqiangxu Committed by GitHub

disallow specify both --p2p.static and --p2p.disable (#10963)

parent a94e7531
......@@ -175,6 +175,9 @@ const maxMeshParam = 1000
func (conf *Config) Check() error {
if conf.DisableP2P {
if len(conf.StaticPeers) > 0 {
return errors.New("both --p2p.static and --p2p.disable are specified")
}
return nil
}
if conf.Store == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment