We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a71982d commit 49b6ef8Copy full SHA for 49b6ef8
1 file changed
src-tauri/src/util.rs
@@ -80,6 +80,12 @@ fn resolve_host(host: &str) -> Result<String> {
80
81
pub(crate) fn resolve_server_addr(addr: &str) -> Result<String> {
82
let (host, port) = split_addr_port(addr)?;
83
+
84
+ // if we alredy have an IP, nothing to resolve
85
+ if host.parse::<std::net::IpAddr>().is_ok() {
86
+ return Ok(addr.to_string());
87
+ }
88
89
let Ok(ip) = resolve_host(&host) else {
90
return Err(format!("Failed to resolve game server address {}", addr).into());
91
};
0 commit comments