mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
use ipv4 for mdns lookups
This commit is contained in:
committed by
Aiden McClelland
parent
29167b7840
commit
dbc159c82e
@@ -20,6 +20,7 @@ use crate::Error;
|
||||
pub async fn resolve_mdns(hostname: &str) -> Result<IpAddr, Error> {
|
||||
Ok(String::from_utf8(
|
||||
Command::new("avahi-resolve-host-name")
|
||||
.arg("-4")
|
||||
.arg(hostname)
|
||||
.invoke(crate::ErrorKind::Network)
|
||||
.await?,
|
||||
|
||||
Reference in New Issue
Block a user