summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2015-07-01 04:19:38 +0000
committerKoichiro IWAO <meta@vmeta.jp>2015-07-02 15:08:56 +0900
commit536ee41c5e53647c54f63eb9179224756d02a8f6 (patch)
tree68801c571f974c09c1506f1e749fb25408c9d3d0 /common/os_calls.c
parent5bc0453605d816d84b4ca1816de22362ac614113 (diff)
downloadxrdp-proprietary-536ee41c5e53647c54f63eb9179224756d02a8f6.tar.gz
xrdp-proprietary-536ee41c5e53647c54f63eb9179224756d02a8f6.zip
common: add --enable-ipv6only option
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 46bc0e8a..04b2ac38 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -479,7 +479,11 @@ g_tcp_socket(void)
{
if (option_value != 0)
{
+#if defined(XRDP_ENABLE_IPV6ONLY)
+ option_value = 1;
+#else
option_value = 0;
+#endif
option_len = sizeof(option_value);
if (setsockopt(rv, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&option_value,
option_len) < 0)