Commit 65abf63
Fix IPv4 socket binding on non-Windows systems
The IPv4 binding code was incorrectly wrapped in #ifdef _WIN32, causing
the server to fall through to IPv6 binding even when IPv4 was explicitly
requested with the -4 flag on Linux systems. This fix removes the Windows-
specific conditional around the IPv4 binding logic while keeping platform-
specific socket close calls.
Fixes the issue where pcm-sensor-server with -4 flag would fail to accept
connections from curl and wget on Linux.
Co-authored-by: rdementi <[email protected]>1 parent 03f48cb commit 65abf63
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
1470 | | - | |
1471 | 1470 | | |
1472 | 1471 | | |
1473 | 1472 | | |
| |||
1479 | 1478 | | |
1480 | 1479 | | |
1481 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1482 | 1484 | | |
| 1485 | + | |
1483 | 1486 | | |
1484 | 1487 | | |
1485 | 1488 | | |
1486 | 1489 | | |
1487 | 1490 | | |
1488 | | - | |
1489 | 1491 | | |
1490 | 1492 | | |
1491 | 1493 | | |
| |||
0 commit comments