Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Feb 2, 2024
1 parent c50a5c1 commit 00e63ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00e63ee

Please sign in to comment.