mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 05:12:10 +00:00
server: Check repository version
This commit is contained in:
parent
5399358272
commit
ae1a85c896
@ -559,6 +559,10 @@ func (s *Server) loadConfig(cfg *Config) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Version != RepositoryVersion {
|
||||
return errors.New("unsupported repository version")
|
||||
}
|
||||
|
||||
if !cfg.ChunkerPolynomial.Irreducible() {
|
||||
return errors.New("invalid chunker polynomial")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user