diff options
author | cyBerta <cyberta@riseup.net> | 2020-07-24 16:30:02 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2020-07-24 16:30:02 +0200 |
commit | e986a294ec3e328bd48bb4c423fe835d1aa2dc69 (patch) | |
tree | a2c13ab9d29c27da15c191f65b013e8d515a6a88 /app/src/test/resources | |
parent | 501a451b8b932e1f0e001599dbfe53810cb9ead0 (diff) |
fix bug in gateway selection - always iterate through all gateways and count those supporting the requested transport in order to get the nClosest gateway; adding more tests
Diffstat (limited to 'app/src/test/resources')
-rw-r--r-- | app/src/test/resources/ptdemo_three_mixed_gateways.geoip.json | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/src/test/resources/ptdemo_three_mixed_gateways.geoip.json b/app/src/test/resources/ptdemo_three_mixed_gateways.geoip.json new file mode 100644 index 00000000..a72a85f5 --- /dev/null +++ b/app/src/test/resources/ptdemo_three_mixed_gateways.geoip.json @@ -0,0 +1,12 @@ +{ + "ip":"51.158.144.32", + "cc":"FR", + "city":"Paris", + "lat":48.8628, + "lon":2.3292, + "gateways":[ + "manila.bitmask.net", + "moscow.bitmask.net", + "pt.demo.bitmask.net" + ] +}
\ No newline at end of file |