forked from root/acme.js
use correct version in UA
This commit is contained in:
parent
90c7154a24
commit
54cda5a888
|
@ -1,6 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var os = require('os');
|
var os = require('os');
|
||||||
|
var ver = require('../../package.json');
|
||||||
|
|
||||||
var UserAgent = module.exports;
|
var UserAgent = module.exports;
|
||||||
UserAgent.get = function(me) {
|
UserAgent.get = function(me) {
|
||||||
|
@ -12,7 +13,9 @@ UserAgent.get = function(me) {
|
||||||
// And https://community.letsencrypt.org/t/user-agent-flag-explained/3843/2
|
// And https://community.letsencrypt.org/t/user-agent-flag-explained/3843/2
|
||||||
|
|
||||||
var ua =
|
var ua =
|
||||||
'ACME.js/v3 ' +
|
'ACME.js/' +
|
||||||
|
ver +
|
||||||
|
' ' +
|
||||||
process.release.name +
|
process.release.name +
|
||||||
'/' +
|
'/' +
|
||||||
process.version +
|
process.version +
|
||||||
|
|
Loading…
Reference in New Issue