mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-25 17:50:29 +08:00
上一个commit修改了函数签名,不好,太笨,还是不改好
proxy.Server返回的 *bytes.Buffer只被用于Fallback,所以直接放到Fallback里就行
This commit is contained in:
@@ -91,7 +91,6 @@ ws和grpc文件夹(第七层)
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
@@ -256,7 +255,7 @@ type Server interface {
|
||||
|
||||
Name() string
|
||||
|
||||
Handshake(underlay net.Conn) (io.ReadWriter, *bytes.Buffer, *Addr, error)
|
||||
Handshake(underlay net.Conn) (io.ReadWriter, *Addr, error)
|
||||
Stop()
|
||||
|
||||
CanFallback() bool //如果能fallback,则handshake失败后,会专门返回 ErrFallback
|
||||
|
||||
Reference in New Issue
Block a user