mirror of
https://github.com/arampoire/onetun.git
synced 2025-12-01 04:40:24 -05:00
parent
def5f22d3c
commit
11f86c49d6
2 changed files with 21 additions and 5 deletions
|
|
@ -164,6 +164,7 @@ impl VirtualInterfacePoll for TcpVirtualInterface {
|
|||
if client_socket.can_recv() {
|
||||
match client_socket.recv(|buffer| (buffer.len(), buffer.to_vec())) {
|
||||
Ok(data) => {
|
||||
debug!("[{}] Received {} bytes from virtual server", virtual_port, data.len());
|
||||
if !data.is_empty() {
|
||||
endpoint.send(Event::RemoteData(*virtual_port, data));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue