From 3ca6d5d74bac81864d634d0a1d32872183a89b90 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 24 Nov 2019 20:01:38 -0800 Subject: [PATCH] Whoops, if UUID is empty that is fine --- server/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/update.go b/server/update.go index 7345965..9374d69 100644 --- a/server/update.go +++ b/server/update.go @@ -23,7 +23,7 @@ func (s *Server) UpdateDataStructure(data []byte) error { // Don't allow obviously corrupted data to pass through into this function. If the UUID // doesn't match something has gone wrong and the API is attempting to meld this server // instance into a totally different one, which would be bad. - if src.Uuid != s.Uuid { + if src.Uuid != "" && src.Uuid != s.Uuid { return errors.New("attempting to merge a data stack with an invalid UUID") }