regenerate pb data

This commit is contained in:
Shelikhoo
2020-06-08 16:16:32 +08:00
parent da0b63bc12
commit 09b81b78c3
53 changed files with 13681 additions and 7059 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
package scenarios
import (
"bytes"
"crypto/rand"
"fmt"
"io"
@@ -13,7 +14,6 @@ import (
"time"
"github.com/golang/protobuf/proto"
"github.com/google/go-cmp/cmp"
"v2ray.com/core"
"v2ray.com/core/app/dispatcher"
"v2ray.com/core/app/proxyman"
@@ -196,9 +196,13 @@ func testTCPConn2(conn net.Conn, payloadSize int, timeout time.Duration) func()
if err != nil {
return err
}
if r := cmp.Diff(response, xor(payload)); r != "" {
_ = response
if r := bytes.Compare(response, xor(payload)); r != 0 {
return errors.New(r)
}
return nil
}
}