diff --git a/srcpkgs/spreed-webrtc/patches/fix-uuid-newv4.patch b/srcpkgs/spreed-webrtc/patches/fix-uuid-newv4.patch new file mode 100644 index 00000000000..528556c0f7e --- /dev/null +++ b/srcpkgs/spreed-webrtc/patches/fix-uuid-newv4.patch @@ -0,0 +1,12 @@ +--- ./go/channelling/server/users.go.orig 2018-01-15 14:20:19.997694620 +0100 ++++ ./go/channelling/server/users.go 2018-01-15 14:20:41.151902026 +0100 +@@ -456,7 +456,8 @@ func (users *Users) Post(request *http.R + } + + // Do this before session validation to avoid timing information. +- userid := fmt.Sprintf("%s@%s", uuid.NewV4().String(), users.realm) ++ tmpUuid, _ := uuid.NewV4() ++ userid := fmt.Sprintf("%s@%s", tmpUuid.String(), users.realm) + + // Make sure Sid matches session and is valid. + if !users.ValidateSession(snr.Id, snr.Sid) { diff --git a/srcpkgs/spreed-webrtc/template b/srcpkgs/spreed-webrtc/template index 09e0b980136..d895dce63bc 100644 --- a/srcpkgs/spreed-webrtc/template +++ b/srcpkgs/spreed-webrtc/template @@ -1,7 +1,7 @@ # Template file for 'spreed-webrtc' pkgname=spreed-webrtc version=0.29.7 -revision=2 +revision=3 build_style=go go_import_path="github.com/strukturag/spreed-webrtc" go_package="${go_import_path}/src/app/spreed-webrtc-server"