Skip to content

Commit 7d0cc6b

Browse files
committed
Enable IPv6 by default on macOS
1 parent 4896c07 commit 7d0cc6b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/api_config.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,8 @@ void api_config::load_from_file(const std::string &filename) {
9696
base_port_ = pt.get("ports.BasePort", 16572);
9797
port_range_ = pt.get("ports.PortRange", 32);
9898
allow_random_ports_ = pt.get("ports.AllowRandomPorts", true);
99-
std::string ipv6_str = pt.get("ports.IPv6",
100-
#ifdef __APPLE__
101-
"disable"); // on Mac OS (10.7) there's a bug in the IPv6 implementation that breaks LSL
102-
// when it tries to use both v4 and v6
103-
#else
104-
"allow");
105-
#endif
99+
std::string ipv6_str = pt.get("ports.IPv6", "allow");
100+
106101
allow_ipv4_ = true;
107102
allow_ipv6_ = true;
108103
// fix some common mis-spellings

0 commit comments

Comments
 (0)