[tor-commits] [snowflake/master] Add a stub sid to probetest answer
cohosh at torproject.org
cohosh at torproject.org
Fri Nov 20 16:09:52 UTC 2020
commit cf2eb5e6c0981831d713a38056226813b8ded623
Author: Cecylia Bocovich <cohosh at torproject.org>
Date: Wed Nov 18 15:57:51 2020 -0500
Add a stub sid to probetest answer
This will prevent calls to DecodeAnswerRequest from returning an error
even though the sid is not needed for the probetest.
---
probetest/probetest.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/probetest/probetest.go b/probetest/probetest.go
index 70032da..d952123 100644
--- a/probetest/probetest.go
+++ b/probetest/probetest.go
@@ -131,7 +131,7 @@ func probeHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
return
}
- body, err := messages.EncodeAnswerRequest(answer, "")
+ body, err := messages.EncodeAnswerRequest(answer, "stub-sid")
if err != nil {
log.Printf("Error making WebRTC connection: %s", err)
w.WriteHeader(http.StatusInternalServerError)
More information about the tor-commits
mailing list