mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +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
|
|
@ -69,10 +69,10 @@ impl Response {
|
|||
}
|
||||
|
||||
pub fn query(address: &str, port: Option<u16>) -> GDResult<Response> {
|
||||
let valve_response = ValveProtocol::query(App::CSGO, address, match port {
|
||||
let valve_response = ValveProtocol::query(address, match port {
|
||||
None => 27015,
|
||||
Some(port) => port
|
||||
}, Some(GatheringSettings {
|
||||
}, Some(App::CSGO), Some(GatheringSettings {
|
||||
players: true,
|
||||
rules: false // cause csgo doesnt reply with rules anymore
|
||||
}))?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue