Commit 525a21a9 authored by David Redondo's avatar David Redondo 🏎
Browse files

Correctly enter the ipv4-over-ipv6 case

The return value of compare is 0 if both strings match
https://en.cppreference.com/w/cpp/string/basic_string/compare
parent a7d1b0d9
......@@ -169,7 +169,7 @@ void ConnectionMapping::parseSocketFile(const char *fileName)
localAddress.address[3] = tcpToInt(match.str(1));
} else {
auto ipv6 = match.str(2);
if (ipv6.compare(0, 24, "0000000000000000FFFF0000")) {
if (ipv6.compare(0, 24, "0000000000000000FFFF0000") == 0) {
// Some applications (like Steam) use ipv6 sockets with ipv4.
// This results in ipv4 addresses that end up in the tcp6 file.
// They seem to start with 0000000000000000FFFF0000, so if we
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment