dietpi-software connection test fails (rpi2-jessie)

Hi guys.
First of all, nice distro that is. I love that you have optimised software installs available.

I was playing around with it on my RPi2. Everything went fine until I tried to open up dietpi-software again.
As I said, the first installation went fine without any problems. But now it told me, I had no internet connection. But I did, as the raspi-config connection test successfully noticed. raspi-software still did not.
I surfed around and found some mentions and probable sources for the problem including solutions. None seemed to apply. I do not use WiFi. DHCP goes fine. I can ping and wget -spider that mirrorsomething.raspberrypi.org and so on.

Finally I found a thread here where the guy had timout issues and just loosened the timeouts a bit.
So - even though someone said, it should be fixed in releases - I went ahead and checked that. Timeouts aren’t it either. I then noticed that I had never seen the test-address being printed out. So I figured, it might be that it isn’t passed on properly.
I simply wrote the mirrorsomething.raspwtf.org you use in there and I can deal with it not being a “clean” solution, but you might want to check both these scripts about that. Though I guess it’s raspi-software’s fault.

Ah, almost forgot: I have the current V133 running here.

tl;dr; Something is wrong in passing on the connection check address from raspi-software to /DietPi/dietpi/func/check_connection in V133 (at least). You might wanna check that out.

Hi,

Thanks for the report and results.

As I said, the first installation went fine without any problems. But now it told me, I had no internet connection. But I did, as the raspi-config connection test successfully noticed. raspi-software still did not.

I can ping and wget -spider that mirrorsomething.raspberrypi.org and so on.

Few questions:

In the mean time, i’ll check the scripts and scrape code, see if anythings up.

Notes

dietpi-config > check connection is:

/DietPi/dietpi/func/check_connection http://mirrordirector.raspbian.org

dietpi-software > connection test is:
#As of v131, the default apt mirror is : http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian

INTERNET_URL_TEST=$(cat /etc/apt/sources.list | grep -m1 "deb http" | awk '{print $2}')
/DietPi/dietpi/func/check_connection "$INTERNET_URL_TEST"