Optimize network interface configuration for macOS and FreeBSD to avoid hard-coded IP addresses (#1853)

Co-authored-by: KKRainbow <443152178@qq.com>
This commit is contained in:
deddey
2026-04-12 21:00:59 +08:00
committed by GitHub
parent daa53e5168
commit 83010861ba
+2 -2
View File
@@ -53,8 +53,8 @@ impl IfConfiguerTrait for MacIfConfiger {
) -> Result<(), Error> { ) -> Result<(), Error> {
run_shell_cmd( run_shell_cmd(
format!( format!(
"ifconfig {} {:?}/{:?} 10.8.8.8 up", "ifconfig {} {:?}/{:?} {:?} up",
name, address, cidr_prefix, name, address, cidr_prefix, address,
) )
.as_str(), .as_str(),
) )