ddsol / speedtest.net

node.js SpeedTest.net client module
MIT License
607 stars 126 forks source link

Setting serverID does not apply #131

Open philly1993 opened 2 years ago

philly1993 commented 2 years ago

I am using version 1.6.2 and trying to set the serverID of my test, but when I see the test results come in in it is not using that specific server.

var test = speedTest({maxTime: time, serverId: '38461'});

Server 38461 comes back as the following JSON below when I run the available servers call.

{ url: 'http://speedtestus.pvdatanet.com:8080/speedtest/upload.php', lat: '40.7128', lon: '-74.0060', name: 'New York, NY', country: 'United States', cc: 'US', sponsor: 'PVDataNet', id: '38461', host: 'speedtestus.pvdatanet.com:8080' },

Is there a different way I am supposed to be setting the server to enforce it always uses that one?

Thanks and any help will be appreciated.