added wrtie config bindings
This commit is contained in:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user