aboutsummaryrefslogtreecommitdiff
path: root/minecraft-protocol/src/server_status_pinger.rs
diff options
context:
space:
mode:
Diffstat (limited to 'minecraft-protocol/src/server_status_pinger.rs')
-rw-r--r--minecraft-protocol/src/server_status_pinger.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/minecraft-protocol/src/server_status_pinger.rs b/minecraft-protocol/src/server_status_pinger.rs
index 1e523511..a86be553 100644
--- a/minecraft-protocol/src/server_status_pinger.rs
+++ b/minecraft-protocol/src/server_status_pinger.rs
@@ -20,7 +20,7 @@ pub async fn ping_server(address: &ServerAddress) -> Result<(), String> {
conn.send_packet(
ClientIntentionPacket {
protocol_version: 757,
- hostname: &address.host,
+ hostname: address.host.clone(),
port: address.port,
intention: ConnectionProtocol::Status,
}