mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Use variables for string matching
The legacy code does case matching on these exact strings so it's better to ensure they're constant.
This commit is contained in:
parent
87ad06a5e2
commit
c3c84fdb48
3 changed files with 7 additions and 5 deletions
|
@ -12,4 +12,7 @@ type Arg struct {
|
|||
var (
|
||||
ErrBadRequest = errors.New("bad request")
|
||||
ErrInternal = errors.New("internal error")
|
||||
|
||||
StrTimedOut = "timed out waiting for answer!"
|
||||
StrNoProxies = "no snowflake proxies currently available"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue