Serve editable world web files and mount the complete host API (T88)
This commit is contained in:
@@ -191,7 +191,7 @@ impl Runtime {
|
||||
cred.clone(),
|
||||
&world.host_dir,
|
||||
"localhost",
|
||||
"http://localhost:8090",
|
||||
"http://localhost:8080",
|
||||
)?),
|
||||
};
|
||||
router.attach_journal(world.root.journal());
|
||||
@@ -226,7 +226,7 @@ impl Runtime {
|
||||
cache::precompile(runtime.compiler.clone(), runtime.world.root.clone());
|
||||
Ok(runtime)
|
||||
}
|
||||
/// Register native listener ports through the shared network policy.
|
||||
/// Access the shared network policy for explicit host-port rules.
|
||||
pub fn network_policy(&self) -> &net::NetPolicy {
|
||||
&self.network
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Host-side network policy. `<dir>/host/network.toml` accepts `deny = ["address:port"]`.
|
||||
//! Host listeners register their ports with `deny_host_port`. Guests cannot bind or connect there.
|
||||
//! Explicit host-port rules supplement the address rules when needed.
|
||||
use std::{
|
||||
collections::HashSet,
|
||||
net::{IpAddr, SocketAddr},
|
||||
|
||||
Reference in New Issue
Block a user