tftp服务器应该是可读写的而不是只读的

This commit is contained in:
iorebuild 2025-08-18 20:25:18 +08:00
parent 69469ee1f4
commit 3e207fe72a

View File

@ -14,7 +14,7 @@ struct ServerState {
async fn start_tftp_server(dir: PathBuf) -> Result<(JoinHandle<()>, AbortHandle)> { async fn start_tftp_server(dir: PathBuf) -> Result<(JoinHandle<()>, AbortHandle)> {
let task = tokio::spawn(async move { let task = tokio::spawn(async move {
println!("Starting TFTP server at: {:?}", dir); println!("Starting TFTP server at: {:?}", dir);
let tftpd = TftpServerBuilder::with_dir_ro(&dir) let tftpd = TftpServerBuilder::with_dir_rw(&dir)
.expect("Failed to create server") .expect("Failed to create server")
.build() .build()
.await .await