mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Changed example ip to localhost
This commit is contained in:
parent
7498b68e81
commit
06b9ef0013
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
use gamedig::games::mc;
|
||||
|
||||
fn main() {
|
||||
let response = mc::query("cosminperram.com", Some(26062)); //or Some(25565), None is the default protocol port (which is 25565)
|
||||
let response = mc::query("localhost", None); //or Some(25565), None is the default protocol port (which is 25565)
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:#?}", r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue