librespeed / speedtest-go

Go backend for LibreSpeed
GNU Lesser General Public License v3.0
733 stars 157 forks source link

Location not working with negative coordinates #25

Closed RomBrz closed 3 years ago

RomBrz commented 3 years ago

Description

I'm setting the speedtest-go to run local, settings the parameters "server_lat" and "server_lng", but doesn't work if i use negative coordenates.

Server

Windows 2019 Server with DotNet Core 5.0.6 publishing the application in IIS: web.config: `<?xml version="1.0" encoding="utf-8"?>

` ## Client anyone ## Steps to reproduce On settings.toml: # Server location server_lat=-23.5504 server_lng=-46.6339 Error log: `level=error msg="Error getting repsonse from ipinfo.io: Get \"https://ipinfo.io/json\": dial tcp 34.117.59.81:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."` Changing settings to (removing the minus signal for both coordinates): # Server location server_lat=23.5504 server_lng=46.6339 Running Log: level=info msg="Configured server coordinates: 23.550400, 46.633900" ## Expected behaviour Work with negative coordinates