mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Move RendezvousMethod field to messages.Arg
This commit is contained in:
parent
26ceb6e20d
commit
dbecefa7d2
6 changed files with 45 additions and 40 deletions
|
@ -167,12 +167,13 @@ func clientOffers(i *IPC, w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
arg := messages.Arg{
|
||||
Body: body,
|
||||
RemoteAddr: "",
|
||||
Body: body,
|
||||
RemoteAddr: "",
|
||||
RendezvousMethod: messages.RendezvousHttp,
|
||||
}
|
||||
|
||||
var response []byte
|
||||
err = i.ClientOffers(arg, &response, RendezvousHttp)
|
||||
err = i.ClientOffers(arg, &response)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue