Merge branch 'jerry-sandbox' of https://github.com/synergy/synergy into jerry-sandbox
This commit is contained in:
commit
3788084e43
|
@ -62,19 +62,10 @@ ClientProxy1_6::setClipboard(ClipboardID id, const IClipboard* clipboard)
|
||||||
size_t size = data.size();
|
size_t size = data.size();
|
||||||
LOG((CLOG_DEBUG "sending clipboard %d to \"%s\"", id, getName().c_str()));
|
LOG((CLOG_DEBUG "sending clipboard %d to \"%s\"", id, getName().c_str()));
|
||||||
|
|
||||||
// HACK: if using SSL, don't send large clipboards (#4601)
|
|
||||||
bool send = true;
|
|
||||||
if (getServer()->isSecure() && (size > kSslClipboardMaxSize)) {
|
|
||||||
send = false;
|
|
||||||
LOG((CLOG_WARN "large clipboards not supported with ssl, size=%d", size));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (send) {
|
|
||||||
StreamChunker::sendClipboard(data, size, id, 0, m_events, this);
|
StreamChunker::sendClipboard(data, size, id, 0, m_events, this);
|
||||||
LOG((CLOG_DEBUG "sent clipboard size=%d", size));
|
LOG((CLOG_DEBUG "sent clipboard size=%d", size));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ClientProxy1_6::handleClipboardSendingEvent(const Event& event, void*)
|
ClientProxy1_6::handleClipboardSendingEvent(const Event& event, void*)
|
||||||
|
|
Loading…
Reference in New Issue