mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 14:11:14 +03:00
fix: Win and macOS compilation errors
This commit is contained in:
@@ -48,6 +48,9 @@ pub enum ProxyError {
|
|||||||
HttpCode200(u16),
|
HttpCode200(u16),
|
||||||
#[error("The proxy address resolution failed: {0}")]
|
#[error("The proxy address resolution failed: {0}")]
|
||||||
AddressResolutionFailed(String),
|
AddressResolutionFailed(String),
|
||||||
|
#[cfg(any(target_os = "windows", target_os = "macos"))]
|
||||||
|
#[error("The native tls error: {0}")]
|
||||||
|
NativeTlsError(#[from] tokio_native_tls::native_tls::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
const MAXIMUM_RESPONSE_HEADER_LENGTH: usize = 4096;
|
const MAXIMUM_RESPONSE_HEADER_LENGTH: usize = 4096;
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ pub struct Encrypt(Key, u64, u64);
|
|||||||
|
|
||||||
pub struct FramedStream(
|
pub struct FramedStream(
|
||||||
pub(crate) Framed<DynTcpStream, BytesCodec>,
|
pub(crate) Framed<DynTcpStream, BytesCodec>,
|
||||||
pub(crate)SocketAddr,
|
pub(crate) SocketAddr,
|
||||||
pub(crate)Option<Encrypt>,
|
pub(crate) Option<Encrypt>,
|
||||||
pub(crate)u64,
|
pub(crate) u64,
|
||||||
);
|
);
|
||||||
|
|
||||||
impl Deref for FramedStream {
|
impl Deref for FramedStream {
|
||||||
|
|||||||
Reference in New Issue
Block a user