use correct version in UA

This commit is contained in:
AJ ONeal 2019-10-24 18:53:08 -06:00
parent 90c7154a24
commit 54cda5a888
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
'use strict';
var os = require('os');
var ver = require('../../package.json');
var UserAgent = module.exports;
UserAgent.get = function(me) {
@ -12,7 +13,9 @@ UserAgent.get = function(me) {
// And https://community.letsencrypt.org/t/user-agent-flag-explained/3843/2
var ua =
'ACME.js/v3 ' +
'ACME.js/' +
ver +
' ' +
process.release.name +
'/' +
process.version +