From e284fee4aa6310b8d9be83582dc7d7b9d84615b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 12 Jun 2024 16:40:59 +0800 Subject: [PATCH] Presets: print DNS info in `examples/20`; optimise --- presets/examples/20.jsonc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/presets/examples/20.jsonc b/presets/examples/20.jsonc index 210441247..ad2e4a70a 100644 --- a/presets/examples/20.jsonc +++ b/presets/examples/20.jsonc @@ -41,8 +41,7 @@ }, { "type": "os", - "key": "│ OS │\u001b[42C", - "format": "{pretty-name}" + "key": "│ OS │\u001b[42C" }, { "type": "kernel", @@ -62,6 +61,10 @@ "key": "│ CLIENT IP │\u001b[42C", "format": "{ipv4}" }, + { + "type": "dns", + "key": "│ DNS │\u001b[42C" + }, { "type": "localip", "key": "│ MAC ADDR │\u001b[42C", @@ -154,7 +157,7 @@ { "type": "users", "key": "│ │\u001b[42C", - "format": "{client-ip}" + "format": "{client-ip}{/client-ip}No IP info" }, { "type": "uptime",