mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Bind only on IPv4, if restricted to localhost.
This is needed, as disabling the IPV6_V6ONLY socket option doesn't work for localhost listeners on Windows.
This commit is contained in:
parent
2049332211
commit
025ab1626b
@ -474,7 +474,7 @@ bool ListenSocket::Listen( uint16_t port, int backlog )
|
||||
|
||||
struct addrinfo* res = nullptr;
|
||||
|
||||
#ifndef TRACY_ONLY_IPV4
|
||||
#if !defined TRACY_ONLY_IPV4 && !defined TRACY_ONLY_LOCALHOST
|
||||
const char* onlyIPv4 = getenv( "TRACY_ONLY_IPV4" );
|
||||
if( !onlyIPv4 || onlyIPv4[0] != '1' )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user