mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Valve Protocol now support anonymously querying
This commit is contained in:
parent
854d395aad
commit
c0d07cf6f9
17 changed files with 68 additions and 54 deletions
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
use std::env;
|
||||
use gamedig::{aliens, asrd, csgo, css, dods, gm, hl2dm, ins, insmic, inss, l4d, l4d2, tf2, ts};
|
||||
use gamedig::valve::ValveProtocol;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
|
@ -37,6 +38,7 @@ fn main() {
|
|||
"l4d" => println!("{:?}", l4d::query(ip, port)),
|
||||
"l4d2" => println!("{:?}", l4d2::query(ip, port)),
|
||||
"ts" => println!("{:?}", ts::query(ip, port)),
|
||||
"_" => println!("{:?}", ValveProtocol::query(ip, 27015, None, None)),
|
||||
_ => panic!("Undefined game: {}", args[1])
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue