aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xorg-server/os/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/os/connection.c b/xorg-server/os/connection.c
index f34cc3ea3..fa471dd6c 100644
--- a/xorg-server/os/connection.c
+++ b/xorg-server/os/connection.c
@@ -447,7 +447,7 @@ CreateWellKnownSockets(void)
else { /* -displayfd */
Bool found = 0;
for (i = 0; i < 65535 - X_TCP_PORT; i++) {
- if (TryCreateSocket(i, &partial) && !partial) {
+ if (TryCreateSocket(i, &partial) && ListenTransCount >= 1 && (PartialNetwork || !partial)) {
found = 1;
break;
}