diff --git a/backend/src/manager/js_api.rs b/backend/src/manager/js_api.rs index 74e030242..d8e194cfd 100644 --- a/backend/src/manager/js_api.rs +++ b/backend/src/manager/js_api.rs @@ -13,6 +13,7 @@ use crate::{ config::hook::ConfigHook, manager::{start_stop::StartStop, Manager}, net::keys::Key, + net::vhost::AlpnInfo, }; use super::try_get_running_ip; @@ -96,7 +97,13 @@ impl OsApi for Manager { let mut tx = secrets.begin().await?; let addr = svc - .add_lan(&mut tx, id.clone(), external_port, internal_port, false) + .add_lan( + &mut tx, + id.clone(), + external_port, + internal_port, + Err(AlpnInfo::Specified(vec![])), + ) .await .map_err(|e| eyre!("Could not add to local: {e:?}"))?; diff --git a/backend/src/net/net_controller.rs b/backend/src/net/net_controller.rs index 32ceaeace..72d5f1d45 100644 --- a/backend/src/net/net_controller.rs +++ b/backend/src/net/net_controller.rs @@ -310,7 +310,7 @@ impl NetService { .await?, ); self.lan.insert(lan_idx, lan); - Ok(addr) + Ok(()) } pub async fn remove_lan(&mut self, id: InterfaceId, external: u16) -> Result<(), Error> { let ctrl = self.net_controller()?; diff --git a/libs/js_engine/src/lib.rs b/libs/js_engine/src/lib.rs index b2ce1a04e..4b629acb7 100644 --- a/libs/js_engine/src/lib.rs +++ b/libs/js_engine/src/lib.rs @@ -425,7 +425,7 @@ impl<'a> Future for RuntimeEventLoop<'a> { if let Poll::Ready(Some((uuid, args))) = this.callback_receiver.poll_recv(cx) { match this.runtime.execute_script( "callback", - &format!("globalThis.runCallback(\"{uuid}\", {})", Value::Array(args)), + format!("globalThis.runCallback(\"{uuid}\", {})", Value::Array(args)).into(), ) { Ok(_) => (), Err(e) => return Poll::Ready(Err(e)),