mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-08 22:51:06 +00:00
Replace usages of Ipv4Addr with IpAddr which allows the use of either Ipv4 or Ipv6. This patch essentially consists of running: "sed -i 's/Ipv4Addr/IpAddr/g' src/**/*.rs examples/*" and fixing the errors.
8 lines
263 B
Rust
8 lines
263 B
Rust
use std::net::IpAddr;
|
|
use crate::protocols::gamespy;
|
|
use crate::protocols::gamespy::three::Response;
|
|
use crate::GDResult;
|
|
|
|
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response> {
|
|
gamespy::three::query(address, port.unwrap_or(64100), None)
|
|
}
|