Skip to content

Commit

Permalink
fix: compatible with macos docker network
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Dec 14, 2024
1 parent dfe3d5d commit 5d951c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5677,7 +5677,11 @@ function first_init() {
fi

if [ ! -f "${DDSREM_CONFIG_DIR}/default_network.txt" ]; then
echo 'host' > "${DDSREM_CONFIG_DIR}/default_network.txt"
if [[ "${OSNAME}" = "macos" ]]; then
echo 'bridge' > "${DDSREM_CONFIG_DIR}/default_network.txt"
else
echo 'host' > "${DDSREM_CONFIG_DIR}/default_network.txt"
fi
fi

INFO "设置 Docker 镜像源中..."
Expand Down

0 comments on commit 5d951c3

Please sign in to comment.