summaryrefslogtreecommitdiff
path: root/main.go
AgeCommit message (Collapse)Author
2020-03-26[feat] add prometheus metrics for countrykali kaneko (leap communications)
2019-12-10randomize gws on same location, and allow to forbidKali Kaneko (leap communications)
2018-12-19[feat] add TLSKali Kaneko (leap communications)
2018-12-13gofmtKali Kaneko (leap communications)
2018-12-13return sorted list of gw hostsKali Kaneko (leap communications)
2018-12-13add license informationkali kaneko
2018-12-13refactor for readabilityKali Kaneko
2018-12-13geolocate gateways and kd-treeKali Kaneko
during initialization, we fetch the eip-config.json file from the configured provider. we geolocate the gateways (using a golang package that has some cities missing, hence the workaround) and initialize a KD-Tree with the gateways. using the KD-Tree, it is very cheap to calculate the nearest gateway for every request, which is provider as a filed in the json to the client - as a suggestion to be used or not in the gateway selection process.
2018-12-11consider X-Forwarded-For header, pass port/path as parameterskali kaneko
2018-12-11set path to debians default for geoipupdatekali kaneko
2018-12-11initial commitkali kaneko