File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -178,18 +178,18 @@ function select_storage() {
178178}
179179
180180# Check for network connectivity (IPv4 & IPv6)
181- function check_network() {
182- local CHECK_URLS=(" 8.8.8.8" " 1.1.1.1" " 9.9.9.9" " 2606:4700:4700::1111" " 2001:4860:4860::8888" " 2620:fe::fe" )
183-
184- for url in " ${CHECK_URLS[@]} " ; do
185- if ping -c 1 -W 2 " $url " & > /dev/null; then
186- return 0 # Success: At least one connection works
187- fi
188- done
189-
190- msg_error " No network connection detected. Check your internet connection."
191- exit 101
192- }
181+ # function check_network() {
182+ # local CHECK_URLS=("8.8.8.8" "1.1.1.1" "9.9.9.9" "2606:4700:4700::1111" "2001:4860:4860::8888" "2620:fe::fe")
183+ #
184+ # for url in "${CHECK_URLS[@]}"; do
185+ # if ping -c 1 -W 2 "$url" &>/dev/null; then
186+ # return 0 # Success: At least one connection works
187+ # fi
188+ # done
189+ #
190+ # msg_error "No network connection detected. Check your internet connection."
191+ # exit 101
192+ # }
193193
194194# Test if ID is in use
195195if qm status " $CTID " & > /dev/null || pct status " $CTID " & > /dev/null; then
@@ -209,7 +209,7 @@ msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage."
209209
210210# Update LXC template list
211211msg_info " Updating LXC Template List"
212- check_network
212+ # check_network
213213pveam update > /dev/null
214214msg_ok " Updated LXC Template List"
215215
You can’t perform that action at this time.
0 commit comments