mirror of
https://github.com/Noratrieb/wakeonlan.git
synced 2026-01-14 16:55:01 +01:00
fix
This commit is contained in:
parent
b7eca51206
commit
f232b157ef
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ use axum::{
|
||||||
routing::{get, post},
|
routing::{get, post},
|
||||||
Router,
|
Router,
|
||||||
};
|
};
|
||||||
use eyre::{bail, Context, ContextCompat};
|
use eyre::{bail, Context};
|
||||||
use std::net::{Ipv4Addr, ToSocketAddrs, UdpSocket};
|
use std::net::{Ipv4Addr, ToSocketAddrs, UdpSocket};
|
||||||
use tracing_subscriber::EnvFilter;
|
use tracing_subscriber::EnvFilter;
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ fn wake_inner() -> eyre::Result<()> {
|
||||||
let host = hosts
|
let host = hosts
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.find(|(host, _)| host.contains("PC-Nora"))
|
.find(|(host, _)| host.contains("PC-Nora"))
|
||||||
.unwrap_or_else(|| ("PC-Nora".into(), parse_mac_addr("00:d8:61:ca:3a:18")))?;
|
.unwrap_or_else(|| ("PC-Nora".into(), parse_mac_addr("00:d8:61:ca:3a:18")));
|
||||||
let magic_packet = MagicPacket::new(&host.1);
|
let magic_packet = MagicPacket::new(&host.1);
|
||||||
magic_packet.send().wrap_err("failed to send packet")?;
|
magic_packet.send().wrap_err("failed to send packet")?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue