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
|
|
@ -71,10 +71,10 @@ impl Response {
|
|||
}
|
||||
|
||||
pub fn query(address: &str, port: Option<u16>) -> GDResult<Response> {
|
||||
let valve_response = ValveProtocol::query(App::CSS, address, match port {
|
||||
let valve_response = ValveProtocol::query(address, match port {
|
||||
None => 27015,
|
||||
Some(port) => port
|
||||
}, None)?;
|
||||
}, Some(App::CSS), None)?;
|
||||
|
||||
Ok(Response::new_from_valve_response(valve_response))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue