Merge branch 'jerry-sandbox' of https://github.com/synergy/synergy into jerry-sandbox
This commit is contained in:
commit
3788084e43
|
@ -61,18 +61,9 @@ 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)
|
StreamChunker::sendClipboard(data, size, id, 0, m_events, this);
|
||||||
bool send = true;
|
LOG((CLOG_DEBUG "sent clipboard size=%d", size));
|
||||||
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);
|
|
||||||
LOG((CLOG_DEBUG "sent clipboard size=%d", size));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue