3lips
3lips copied to clipboard
ADS-B server with non-standard port fails due to URL encoding
If I specify a server with a non-standard port in the config file using the colon : syntax (e.g. 10.9.15.7:8087), the code later URL-encodes this value into 10.9.15.7%3A8087, which causes issues in downstream requests.
For example, the following is generated https://10.9.15.7%3A8087/data/aircraft.json which is interpreted as:
host='10.9.15.7%3A8087', port=443 and fails with a NameResolutionError.