spreed-webrtc: fix uuid fuckup
ref: https://github.com/satori/go.uuid/issues/66
This commit is contained in:
parent
460f7743ea
commit
381618b079
|
@ -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) {
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue