From 54cda5a888acf7910533409cac9b39d751e9d034 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 24 Oct 2019 18:53:08 -0600 Subject: [PATCH] use correct version in UA --- lib/node/client-user-agent.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/node/client-user-agent.js b/lib/node/client-user-agent.js index 4c71dad..b3ec96a 100644 --- a/lib/node/client-user-agent.js +++ b/lib/node/client-user-agent.js @@ -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 +