mirror of
https://codeberg.org/icewind/tasproxy.git
synced 2026-06-03 18:24:08 +02:00
fix mqqt id
This commit is contained in:
parent
dd852013a8
commit
ce6848d948
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ async fn mqtt_client(host: &str, port: u16, device_states: DeviceStates) -> Resu
|
||||||
let hostname = hostname::get()?
|
let hostname = hostname::get()?
|
||||||
.into_string()
|
.into_string()
|
||||||
.map_err(|_| Report::msg("invalid hostname"))?;
|
.map_err(|_| Report::msg("invalid hostname"))?;
|
||||||
let mut mqtt_options = MqttOptions::new(format!("taspromto-{}", hostname), host, port);
|
let mut mqtt_options = MqttOptions::new(format!("tasproxy-{}", hostname), host, port);
|
||||||
mqtt_options.set_keep_alive(5);
|
mqtt_options.set_keep_alive(5);
|
||||||
|
|
||||||
let (client, stream) = mqtt_stream(mqtt_options)
|
let (client, stream) = mqtt_stream(mqtt_options)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue