mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
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.
This commit is contained in:
parent
0bed9c48b7
commit
cf2eb5e6c0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue