mirror of https://github.com/schollz/croc.git
less printing
This commit is contained in:
parent
5a94062171
commit
da2b22f73d
|
@ -28,6 +28,7 @@ func sendAndReceive(t *testing.T, forceSend int, local bool) {
|
|||
defer wg.Done()
|
||||
c := Init(true)
|
||||
c.NoLocal = !local
|
||||
// c.AddressTCPPorts = []string{"8154", "8155"}
|
||||
c.ForceSend = forceSend
|
||||
c.UseCompression = true
|
||||
c.UseEncryption = true
|
||||
|
@ -40,6 +41,7 @@ func sendAndReceive(t *testing.T, forceSend int, local bool) {
|
|||
os.Chdir("test")
|
||||
c := Init(true)
|
||||
c.NoLocal = !local
|
||||
// c.AddressTCPPorts = []string{"8154", "8155"}
|
||||
c.ForceSend = forceSend
|
||||
startTime = time.Now()
|
||||
assert.Nil(t, c.Receive(room))
|
||||
|
|
|
@ -180,7 +180,6 @@ func send(forceSend int, serverAddress string, tcpPorts []string, isLocal bool,
|
|||
currentPostition := int64(0)
|
||||
for {
|
||||
bytesread, err := f.Read(buffer)
|
||||
log.Debug(bytesread, err)
|
||||
if bytesread > 0 {
|
||||
// do compression
|
||||
var compressedBytes []byte
|
||||
|
|
Loading…
Reference in New Issue