added wrtie config bindings

This commit is contained in:
2025-06-28 11:57:34 +01:00
parent e2ca1982f5
commit 0cdfab9d5d
2 changed files with 98 additions and 13 deletions

View File

@@ -88,6 +88,19 @@ async fn main() {
// Test map port output
println!("{:#?}", p2prc_map_port_command("3000","test.akilan.io",""));
let mut config = p2prc_read_config();
// Change server port
config.server_port = "1233".parse().unwrap();
p2prc_write_config(config);
println!("{:#?}", p2prc_read_config());
// println!("{}", p2prc_map_port_command("3000", "0.0.0.0",""));
// println!("Starting SpinProcess...");