Move tokio_kcp to local files

This commit is contained in:
KernelErr
2021-10-26 23:02:05 +08:00
parent bfce455a7e
commit a88a263d20
15 changed files with 1010 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
use crate::plugins::kcp::{KcpConfig, KcpListener, KcpStream};
use crate::servers::Proxy;
use futures::future::try_join;
use log::{debug, error, warn};
@@ -6,7 +7,6 @@ use std::sync::Arc;
use tokio::io;
use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt};
use tokio::net::TcpStream;
use tokio_kcp::{KcpConfig, KcpListener, KcpStream};
pub async fn proxy(config: Arc<Proxy>) -> Result<(), Box<dyn std::error::Error>> {
let kcp_config = KcpConfig::default();