diff --git a/hostd/src/main.rs b/hostd/src/main.rs index 01ff4d2..9df041a 100644 --- a/hostd/src/main.rs +++ b/hostd/src/main.rs @@ -6,8 +6,6 @@ use crate::io_patagia_Hostd::{ mod io_patagia_Hostd; -const LISTEN_ADDRESS: &str = "unix:/tmp/io.patagia.Hostd"; - struct Hostd; impl VarlinkInterface for Hostd { @@ -24,7 +22,7 @@ impl VarlinkInterface for Hostd { value: "value".to_string(), }]), patagiaAgent: Option::from(PatagiaAgentConfig { - url: "https://cdn.patagia.dev/patagia-agent/stable".to_string(), + url: "hostname".to_string(), extraMounts: HashMap::new(), }), }; @@ -45,9 +43,8 @@ fn main() { ); let ret: Result<(), varlink::Error> = varlink::listen( svc, - LISTEN_ADDRESS, + "unix:/tmp/io.patagia.Hostd", &varlink::ListenConfig { - // Listen forever (0 = forever) idle_timeout: 0, ..Default::default() },