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> {
run_shell_cmd(
format!(
"ifconfig {} {:?}/{:?} 10.8.8.8 up",
name, address, cidr_prefix,
"ifconfig {} {:?}/{:?} {:?} up",
name, address, cidr_prefix, address,
)
.as_str(),
)