mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Sync local time with HTTP 'Date' header value.
This commit is contained in:
@@ -165,7 +165,10 @@ ConnectionPointer AbstractConnection::Create(
|
||||
const ProxyData &proxy) {
|
||||
auto result = [&] {
|
||||
if (protocol == DcOptions::Variants::Tcp) {
|
||||
return ConnectionPointer::New<TcpConnection>(thread, proxy);
|
||||
return ConnectionPointer::New<TcpConnection>(
|
||||
instance,
|
||||
thread,
|
||||
proxy);
|
||||
} else {
|
||||
return ConnectionPointer::New<HttpConnection>(thread, proxy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user