summaryrefslogtreecommitdiff
path: root/tcp-proxy
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-28 10:29:25 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-28 10:29:25 -0700
commit40d5c79b62e7ca7f6da7697e720fb0eb49a26125 (patch)
treeff211297bf7fed40e1942fb1fc838f4155427cd9 /tcp-proxy
parent15371095146a45122407719d33bcf339ed0f87bf (diff)
downloadinfinitytier-40d5c79b62e7ca7f6da7697e720fb0eb49a26125.tar.gz
infinitytier-40d5c79b62e7ca7f6da7697e720fb0eb49a26125.zip
Enable SO_NO_CHECK if available to skip UDP checksum on packet send for slight performance improvement. We do our own cryptographically secure authentication so UDP checksum is worthless.
Diffstat (limited to 'tcp-proxy')
-rw-r--r--tcp-proxy/tcp-proxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp-proxy/tcp-proxy.cpp b/tcp-proxy/tcp-proxy.cpp
index 6acf7b42..70c0281a 100644
--- a/tcp-proxy/tcp-proxy.cpp
+++ b/tcp-proxy/tcp-proxy.cpp
@@ -297,7 +297,7 @@ int main(int argc,char **argv)
srand(time((time_t *)0));
TcpProxyService svc;
- Phy<TcpProxyService *> phy(&svc,false);
+ Phy<TcpProxyService *> phy(&svc,false,true);
svc.phy = &phy;
svc.udpPortCounter = 1023;