Third os detection try

This commit is contained in:
2020-08-13 12:17:09 +02:00
parent 3b127cffa8
commit 33bb63cb2b

View File

@ -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);
}