mirror of
https://github.com/restic/restic.git
synced 2026-11-14 06:44:03 +00:00
server: Only save crypto.Key
At the moment, the server doesn't need the full server.Key (master and user key), just the master key.
This commit is contained in:
1 parent
08fac28e73
commit
1213d87b1a
5 files changed
+34
-26
No files matched your search
@@ -121,7 +121,7 @@ func (cmd CmdCat) Execute(args []string) error {
|
||||
fmt.Println(string(buf))
|
||||
return nil
|
||||
case "masterkey":
|
||||
buf, err := json.MarshalIndent(s.Key().Master(), "", " ")
|
||||
buf, err := json.MarshalIndent(s.Key(), "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user