diff --git a/protocol/src/protocol/mod.rs b/protocol/src/protocol/mod.rs index 0514312..18b251d 100644 --- a/protocol/src/protocol/mod.rs +++ b/protocol/src/protocol/mod.rs @@ -19,6 +19,7 @@ use aes::Aes128; use cfb8::Cfb8; use cfb8::stream_cipher::{NewStreamCipher, StreamCipher}; use serde_json; +use std_or_web::fs; #[cfg(not(target_arch = "wasm32"))] use reqwest; @@ -1070,7 +1071,7 @@ impl Conn { if network_debug { debug!("about to parse id={:x}, dir={:?} state={:?}", id, dir, self.state); - std::fs::File::create("last-packet")?.write_all(buf.get_ref())?; + fs::File::create("last-packet")?.write_all(buf.get_ref())?; } let packet = packet::packet_by_id(self.protocol_version, self.state, dir, id, &mut buf)?;