From 75750f12a5c4a59251a79ca6a462bdbc3d5125ad Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 14 Aug 2023 20:19:11 -0700 Subject: [PATCH] [F] Fix macOS route on VPN hangs https://github.com/dylanaraps/neofetch/pull/2362 --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b7c25e5d..6991dd96 100755 --- a/neofetch +++ b/neofetch @@ -4934,7 +4934,7 @@ get_local_ip() { "Mac OS X" | "macOS" | "iPhone OS") if [[ "${local_ip_interface[0]}" == "auto" ]]; then - interface="$(route get 1 | awk -F': ' '/interface/ {printf $2; exit}')" + interface="$(route -n get 1 | awk -F': ' '/interface/ {printf $2; exit}')" local_ip="$(ipconfig getifaddr "$interface")" else for interface in "${local_ip_interface[@]}"; do