Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4c96c9e24f | |||
| 3e207fe72a |
@@ -1,2 +0,0 @@
|
|||||||
[build]
|
|
||||||
rustflags = ["-C", "link-arg=resource.res"]
|
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user