|
|
@@ -306,6 +306,12 @@ XserverDesktop::queryConnection(network::Socket* sock, |
|
|
|
return rfb::VNCServerST::REJECT; |
|
|
|
} |
|
|
|
|
|
|
|
count = vncNotifyQueryConnect(); |
|
|
|
if (count == 0) { |
|
|
|
*reason = strDup("Unable to query the local user to accept the connection."); |
|
|
|
return rfb::VNCServerST::REJECT; |
|
|
|
} |
|
|
|
|
|
|
|
queryConnectAddress.replaceBuf(sock->getPeerAddress()); |
|
|
|
if (!userName) |
|
|
|
userName = "(anonymous)"; |
|
|
@@ -313,12 +319,6 @@ XserverDesktop::queryConnection(network::Socket* sock, |
|
|
|
queryConnectId = (uint32_t)(intptr_t)sock; |
|
|
|
queryConnectSocket = sock; |
|
|
|
|
|
|
|
count = vncNotifyQueryConnect(); |
|
|
|
if (count == 0) { |
|
|
|
*reason = strDup("Unable to query the local user to accept the connection."); |
|
|
|
return rfb::VNCServerST::REJECT; |
|
|
|
} |
|
|
|
|
|
|
|
return rfb::VNCServerST::PENDING; |
|
|
|
} |
|
|
|
|