add relay proxy protocol

This commit is contained in:
ginuerzh
2020-02-27 14:56:48 +08:00
parent a99ff4aa15
commit 1587c679e7
10 changed files with 391 additions and 33 deletions
+2
View File
@@ -321,6 +321,7 @@ type obfsTLSConn struct {
handshakeMutex sync.Mutex
}
// ClientObfsTLSConn creates a connection for obfs-tls client.
func ClientObfsTLSConn(conn net.Conn, host string) net.Conn {
return &obfsTLSConn{
Conn: conn,
@@ -329,6 +330,7 @@ func ClientObfsTLSConn(conn net.Conn, host string) net.Conn {
}
}
// ServerObfsTLSConn creates a connection for obfs-tls server.
func ServerObfsTLSConn(conn net.Conn, host string) net.Conn {
return &obfsTLSConn{
Conn: conn,