Location not working with negative coordinates
RomBrz opened this issue · 0 comments
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"?> <configuration> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath=".\speedtest-backend.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" /> </system.webServer> </configuration>
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