Add multiplexer for vmess

This commit is contained in:
世界
2022-08-04 10:38:20 +08:00
parent a6e5654436
commit ed32fa60df
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