Pierre Souchay
b4590fb8e8
Display nicely Networks (CIDR) in runtime configuration ( #6029 )
...
* Display nicely Networks (CIDR) in runtime configuration
CIDR mask is displayed in binary in configuration.
This add support for nicely displaying CIDR in runtime configuration.
Currently, if a configuration contains the following lines:
"http_config": {
"allow_write_http_from": [
"127.0.0.0/8",
"::1/128"
]
}
A call to `/v1/agent/self?pretty` would display
"AllowWriteHTTPFrom": [
{
"IP": "127.0.0.0",
"Mask": "/wAAAA=="
},
{
"IP": "::1",
"Mask": "/////////////////////w=="
}
]
This PR fixes it and it will now display:
"AllowWriteHTTPFrom": [ "127.0.0.0/8", "::1/128" ]
* Added test for cidr nice rendering in `TestSanitize()`.
2019-07-23 16:30:16 -04:00
..
2018-10-10 16:55:34 +01:00
2019-07-12 09:52:26 -06:00
2019-07-15 10:09:52 -05:00
2019-07-20 02:00:29 +00:00
2019-07-23 16:30:16 -04:00
2019-06-27 22:22:07 +02:00
2019-07-20 02:00:29 +00:00
2018-11-02 12:00:39 -05:00
2019-07-12 09:52:26 -06:00
2018-10-19 12:04:07 -04:00
2019-06-27 22:22:07 +02:00
2019-07-15 10:09:52 -05:00
2019-03-27 08:54:56 -04:00
2019-03-04 09:19:35 -05:00
2019-07-23 14:45:20 -04:00
2019-02-27 14:28:31 -05:00
2019-07-20 02:00:29 +00:00
2019-02-14 10:59:14 -05:00
2018-10-19 12:04:07 -04:00
2019-04-30 11:45:36 -04:00
2019-04-30 11:45:36 -04:00
2019-06-27 22:22:07 +02:00
2018-10-19 12:04:07 -04:00
2019-07-01 19:47:58 -04:00
2019-07-01 16:28:30 -04:00
2019-07-17 14:06:50 -05:00
2019-07-17 15:43:30 -04:00
2019-07-15 18:09:30 +00:00
2019-06-17 10:51:50 -04:00
2019-06-24 14:11:34 -04:00
2019-07-12 12:20:30 -05:00
2019-04-30 16:27:16 -07:00
2019-04-30 18:19:19 -04:00
2019-03-06 11:13:28 -06:00
2019-02-14 10:59:14 -05:00
2018-09-13 15:43:00 +01:00
2019-07-16 14:47:45 -06:00
2019-06-30 02:00:31 +00:00
2019-06-30 02:00:31 +00:00
2019-05-01 11:11:27 -04:00
2019-03-27 08:54:56 -04:00
2018-08-02 14:54:48 +01:00
2019-07-12 14:51:25 -07:00
2019-04-16 10:29:34 -06:00
2019-02-14 10:59:14 -05:00
2019-07-12 12:21:25 -05:00
2019-03-27 08:54:56 -04:00
2019-06-26 11:43:30 -05:00
2019-02-14 10:59:14 -05:00
2019-07-01 16:28:30 -04:00
2019-07-12 12:21:25 -05:00
2019-03-27 08:54:56 -04:00
2019-02-14 10:59:14 -05:00
2018-08-02 14:54:48 +01:00
2018-08-02 14:54:48 +01:00
2019-04-04 17:09:32 -04:00
2019-06-17 10:51:50 -04:00
2018-10-10 16:55:34 +01:00
2019-07-16 14:47:45 -06:00
2019-06-27 22:22:07 +02:00
2019-06-27 22:22:07 +02:00
2019-05-01 16:39:31 -07:00
2019-07-01 16:28:30 -04:00
2019-04-17 15:52:23 -05:00
2019-02-14 10:59:14 -05:00
2019-06-04 10:02:38 -04:00
2018-10-02 15:57:21 -05:00
2018-10-02 15:57:21 -05:00
2019-02-22 17:34:45 -05:00
2019-02-14 10:59:14 -05:00
2019-06-27 22:22:07 +02:00
2019-06-17 10:51:50 -04:00
2019-04-25 12:26:33 -04:00
2019-07-19 09:13:18 -04:00
2019-04-16 12:00:15 -04:00
2019-07-01 16:28:30 -04:00
2019-03-27 08:54:56 -04:00
2019-03-27 08:54:56 -04:00
2018-10-02 15:57:21 -05:00
2019-04-26 12:33:01 -04:00
2019-04-26 12:33:01 -04:00