feat: add some botched old address support

This commit is contained in:
Tamipes 2025-12-11 02:26:08 +01:00
parent 1d9d205d8c
commit 2eb9adc61a
3 changed files with 21 additions and 5 deletions

View file

@ -124,7 +124,7 @@ pub trait MinecraftServerHandle: Clone {
}
pub trait MinecraftAPI<T> {
async fn query_server(&self, addr: String) -> Result<T, OpaqueError>;
async fn query_server(&self, addr: &str) -> Result<T, OpaqueError>;
async fn start_watch(
self,
server: impl MinecraftServerHandle,