Valve Protocol now support anonymously querying

This commit is contained in:
cosminperram 2022-10-23 13:34:40 +03:00
parent 854d395aad
commit c0d07cf6f9
17 changed files with 68 additions and 54 deletions

View file

@ -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
}))?;