[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Add a stub sid to probetest answer
commit cf2eb5e6c0981831d713a38056226813b8ded623
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits