KSP-CKAN / CKAN

The Comprehensive Kerbal Archive Network
https://forum.kerbalspaceprogram.com/index.php?/topic/197082-*
Other
1.99k stars 348 forks source link

Include version in Inflator useragent string #4185

Closed HebaruSan closed 2 months ago

HebaruSan commented 2 months ago

Motivation

See #3490 and #4184; we use a custom useragent string for the Inflator, and it would be nice if it included the client version.

Changes

Now the Inflator's ENTRYPOINT passes $(/usr/bin/mono netkan.exe --version) as part of its --net-useragent argument, so remote hosts will be able to log the version of the bot that made a request.

Mozilla/5.0 (compatible; Netkanbot/1.0; CKAN/v1.34.5+24261; +https://github.com/KSP-CKAN/NetKAN-Infra)