[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pluggable-transports/snowflake] 28/31: Move ErrExtraInfo to ipc.go



This is an automated email from the git hooks/post-receive script.

shelikhoo pushed a commit to branch main
in repository pluggable-transports/snowflake.

commit 0ae4d821f0c8440a3d1d9771f16912ef897754be
Author: Shelikhoo <xiaokangwang@xxxxxxxxxxx>
AuthorDate: Wed May 18 16:19:38 2022 +0100

    Move ErrExtraInfo to ipc.go
---
 common/messages/ipc.go   | 1 +
 common/messages/proxy.go | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/messages/ipc.go b/common/messages/ipc.go
index 13e096f..3250742 100644
--- a/common/messages/ipc.go
+++ b/common/messages/ipc.go
@@ -12,6 +12,7 @@ type Arg struct {
 var (
 	ErrBadRequest = errors.New("bad request")
 	ErrInternal   = errors.New("internal error")
+	ErrExtraInfo  = errors.New("client sent extra info")
 
 	StrTimedOut  = "timed out waiting for answer!"
 	StrNoProxies = "no snowflake proxies currently available"
diff --git a/common/messages/proxy.go b/common/messages/proxy.go
index aa55c22..41af4bf 100644
--- a/common/messages/proxy.go
+++ b/common/messages/proxy.go
@@ -24,8 +24,6 @@ var KnownProxyTypes = map[string]bool{
 	"iptproxy":   true,
 }
 
-var ErrExtraInfo = errors.New("client sent extra info")
-
 /* Version 1.2 specification:
 
 == ProxyPollRequest ==

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits