Disabled compression for outbound packets in SDK build

This commit is contained in:
Joseph Henry 2019-05-13 12:24:22 -07:00
parent 95ef13f7a1
commit 2d5c6fa975

View File

@ -425,7 +425,7 @@ void Switch::onLocalEthernet(void *tPtr,const SharedPtr<Network> &network,const
from.appendTo(outp);
outp.append((uint16_t)etherType);
outp.append(data,len);
if (!network->config().disableCompression())
if (!network->config().disableCompression() && !ZT_SDK)
outp.compress();
aqm_enqueue(tPtr,network,outp,true,qosBucket);
} else {
@ -433,7 +433,7 @@ void Switch::onLocalEthernet(void *tPtr,const SharedPtr<Network> &network,const
outp.append(network->id());
outp.append((uint16_t)etherType);
outp.append(data,len);
if (!network->config().disableCompression())
if (!network->config().disableCompression() && !ZT_SDK)
outp.compress();
aqm_enqueue(tPtr,network,outp,true,qosBucket);
}
@ -490,7 +490,7 @@ void Switch::onLocalEthernet(void *tPtr,const SharedPtr<Network> &network,const
from.appendTo(outp);
outp.append((uint16_t)etherType);
outp.append(data,len);
if (!network->config().disableCompression())
if (!network->config().disableCompression() && !ZT_SDK)
outp.compress();
aqm_enqueue(tPtr,network,outp,true,qosBucket);
} else {