Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit c2444e2

Browse files
committed
gate: fix mismatched gate types
1 parent b9a9156 commit c2444e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/gate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ var (
102102
// NetConnGate filters chunks to only those matching the NetConn type.
103103
NetConnGate = &StreamIdGate{3}
104104

105-
// DataStreamGate filters chunks to only those matching the DataStream
105+
// NetStreamGate filters chunks to only those matching the NetStream
106106
// type.
107-
DataStreamGate = NewUnionGate(&StreamIdGate{4}, &TypeIdGate{0x14})
107+
NetStreamGate = NewUnionGate(&StreamIdGate{4}, &TypeIdGate{0x14})
108108

109-
// NetStreamGate filters chunks to only those matching the NetStream
109+
// DataStreamGate filters chunks to only those matching the DataStream
110110
// type.
111-
NetStreamGate = NewUnionGate(&StreamIdGate{4}, NewAnyGate(
111+
DataStreamGate = NewUnionGate(&StreamIdGate{4}, NewAnyGate(
112112
&TypeIdGate{0x08}, &TypeIdGate{0x09}, &TypeIdGate{0x12},
113113
))
114114
)

0 commit comments

Comments
 (0)