We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9025443 commit f03c627Copy full SHA for f03c627
lib/ca.js
@@ -213,6 +213,9 @@ CA.prototype.generateServerCertificateKeys = function (hosts, cb) {
213
certServer.setExtensions(ServerExtensions.concat([{
214
name: 'subjectAltName',
215
altNames: hosts.map(function(host) {
216
+ if (host.match(/^[\d\.]+$/)) {
217
+ return {type: 7, ip: host};
218
+ }
219
return {type: 2, value: host};
220
})
221
}]));
0 commit comments