Add multiplexer for vmess

This commit is contained in:
世界
2022-08-04 10:38:20 +08:00
parent 1c3c154d6d
commit 64dbac8138
12 changed files with 171 additions and 50 deletions

View File

@@ -109,7 +109,7 @@ func ReadRequest(reader io.Reader) (*Request, error) {
if err != nil {
return nil, err
}
if protocol > byte(ProtocolSMux) {
if protocol > byte(ProtocolYAMux) {
return nil, E.New("unsupported protocol: ", protocol)
}
return &Request{Protocol: Protocol(protocol)}, nil