Add multiplexer for vmess

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

No files matched your search

+1 -1
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