librespeed / speedtest

Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
https://librespeed.org
GNU Lesser General Public License v3.0
12.27k stars 2.21k forks source link

Improved code structure (backend/getIp.php) #670

Open Mespeet opened 1 month ago

Mespeet commented 1 month ago

Improved the overall code structure of backend/getIp.php.

Really suggest going with a more oop based code tbh but I guess this works. ㄟ( ▔, ▔ )ㄏ

sstidl commented 3 weeks ago

hey @Mespeet !

thank you for the really more readable code. i would like to merge it, but would like to know if this would need any minimum php version. i know @adolfintel still wants to support older php versions so far, so your change should not break anyones installation where still older php is used.