fix: server_watcher don't use unwrap and use the external port quering the server

This commit is contained in:
Tamipes 2026-01-13 13:32:26 +01:00
parent e67afc23df
commit a58024c192
2 changed files with 18 additions and 3 deletions

View file

@ -67,6 +67,7 @@ pub trait MinecraftServerHandle: Clone {
async fn stop(&self) -> Result<(), OpaqueError>;
async fn query_status(&self) -> Result<ServerDeploymentStatus, OpaqueError>;
fn get_internal_address(&self) -> Option<String>;
fn get_internal_port(&self) -> Option<String>;
fn get_addr(&self) -> Option<String>;
fn get_port(&self) -> Option<String>;
fn get_motd(&self) -> Option<String>;