From 33bb63cb2b4f37eb423f40d0cbe2459a2852d44f Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 13 Aug 2020 12:17:09 +0200 Subject: [PATCH] Third os detection try --- src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.cpp b/src/client.cpp index 887f2f0..5f35b33 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -110,7 +110,7 @@ string get_os_info(int fd) { int ttl; unsigned int ttlsize = sizeof(ttl); - getsockopt(fd, IPPROTO_TCP, IP_TTL, &ttl, &ttlsize); + getsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, &ttlsize); return "win_size=" + to_string(winsize) + ", ttl=" + to_string(ttl); }