mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-07 13:53:12 +00:00
5cc138e23d
Signed-off-by: mujunxiang <1948535941@qq.com>
10 lines
208 B
Rust
10 lines
208 B
Rust
use super::NetInfo;
|
|
|
|
pub fn get_net_info(addr: &str, iface: &str) -> NetInfo {
|
|
let mut ni = NetInfo::default();
|
|
ni.node_common.addr = addr.to_string();
|
|
ni.interface = iface.to_string();
|
|
|
|
ni
|
|
}
|