Skip to content

Commit 00f5f10

Browse files
authored
Use IpAddr instead of Ipv4Addr (#497)
1 parent 1605738 commit 00f5f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

feather/server/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Loads an `Options` from a TOML config.
22
3-
use std::{fs, net::Ipv4Addr, path::Path, str::FromStr};
3+
use std::{fs, net::IpAddr, path::Path, str::FromStr};
44

55
use anyhow::Context;
66
use base::Gamemode;
@@ -78,7 +78,7 @@ impl Config {
7878

7979
#[derive(Debug, Deserialize)]
8080
pub struct Network {
81-
pub address: Ipv4Addr,
81+
pub address: IpAddr,
8282
pub port: u16,
8383
pub compression_threshold: i32,
8484
}

0 commit comments

Comments
 (0)