export padIP: пробелы вокруг /
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ipwhitelist",
|
"name": "ipwhitelist",
|
||||||
"version": "0.5.179",
|
"version": "0.5.180",
|
||||||
"description": "IP WhiteList microservice for cloud provider",
|
"description": "IP WhiteList microservice for cloud provider",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ function createExportRouter() {
|
|||||||
function padIP(cidr) {
|
function padIP(cidr) {
|
||||||
const [ip, mask] = cidr.split('/');
|
const [ip, mask] = cidr.split('/');
|
||||||
const octets = ip.split('.').map(o => o.padStart(3, ' '));
|
const octets = ip.split('.').map(o => o.padStart(3, ' '));
|
||||||
return octets.join('.') + '/' + mask;
|
return octets.join('.') + ' / ' + mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderTable(cidrs) {
|
function renderTable(cidrs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user