From 00e63ee57871658eebfbdfb110f3cf8c3c334271 Mon Sep 17 00:00:00 2001 From: DDSRem <1448139087@qq.com> Date: Fri, 2 Feb 2024 21:21:34 +0800 Subject: [PATCH] fix: bug --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index f95b623f8e..b31b4f45c5 100644 --- a/main.sh +++ b/main.sh @@ -411,7 +411,7 @@ function main_xiaoya_alist() { function get_docker0_url() { if command -v ifconfig > /dev/null 2>&1; then - docker0=$(ifconfig docker0 | awk '/inet / {print $2}' | tr -d "addr:") + docker0=$(ifconfig docker0 | awk '/inet / {print $2}' | sed 's/addr://') else docker0=$(ip addr show docker0 | awk '/inet / {print $2}' | cut -d '/' -f 1) fi