use ipv4 for mdns lookups

This commit is contained in:
Aiden McClelland
2021-12-27 12:24:16 -07:00
committed by Aiden McClelland
parent 29167b7840
commit dbc159c82e

View File

@@ -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?,