mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +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> {
|
pub async fn resolve_mdns(hostname: &str) -> Result<IpAddr, Error> {
|
||||||
Ok(String::from_utf8(
|
Ok(String::from_utf8(
|
||||||
Command::new("avahi-resolve-host-name")
|
Command::new("avahi-resolve-host-name")
|
||||||
|
.arg("-4")
|
||||||
.arg(hostname)
|
.arg(hostname)
|
||||||
.invoke(crate::ErrorKind::Network)
|
.invoke(crate::ErrorKind::Network)
|
||||||
.await?,
|
.await?,
|
||||||
|
|||||||
Reference in New Issue
Block a user