mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-28 13:05:24 +03:00
Fix leaks and add test
This commit is contained in:
@@ -17,6 +17,10 @@ var muxProtocols = []mux.Protocol{
|
||||
mux.ProtocolSMux,
|
||||
}
|
||||
|
||||
func TestVMessSMux(t *testing.T) {
|
||||
testVMessMux(t, mux.ProtocolSMux.String())
|
||||
}
|
||||
|
||||
func TestShadowsocksMux(t *testing.T) {
|
||||
for _, protocol := range muxProtocols {
|
||||
t.Run(protocol.String(), func(t *testing.T) {
|
||||
@@ -25,14 +29,6 @@ func TestShadowsocksMux(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestVMessMux(t *testing.T) {
|
||||
for _, protocol := range muxProtocols {
|
||||
t.Run(protocol.String(), func(t *testing.T) {
|
||||
testVMessMux(t, protocol.String())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func testShadowsocksMux(t *testing.T, protocol string) {
|
||||
method := shadowaead_2022.List[0]
|
||||
password := mkBase64(t, 16)
|
||||
|
||||
Reference in New Issue
Block a user