mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Move the logic for the legacy version into the http handlers and use a shim when doing ipc.
15 lines
196 B
Go
15 lines
196 B
Go
package messages
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
type Arg struct {
|
|
Body []byte
|
|
RemoteAddr string
|
|
}
|
|
|
|
var (
|
|
ErrBadRequest = errors.New("bad request")
|
|
ErrInternal = errors.New("internal error")
|
|
)
|