admin/options: link to wildcards on "blocked ips"
Massimo Melina committed
May 8, 2023 at 14:46 UTC
2f6b158e5756dbbdcd60709666f6abd79b6a0e55
1 file changed
+1
-1
admin/src/OptionsPage.ts
+1
-1
@@ -153,7 +153,7 @@ export default function OptionsPage() {
153
keyLabel: "Files", keyWidth: 7,
154
valueLabel: "Mime type", valueWidth: 4
155
},
156
- { k: 'block', label: "Blocked IPs", multiline: true, minRows:3, helperText: "Enter an IP address for each line. CIDR and * are supported.",
156
+ { k: 'block', label: "Blocked IPs", multiline: true, minRows:3, helperText: h(Fragment, {}, "Enter an IP address for each line. ", h(WildcardsSupported)),
157
fromField: (all:string) => all.split('\n').map(s => s.trim()).filter(Boolean).map(ip => ({ ip })),
158
toField: (all: any) => !Array.isArray(all) ? '' : all.map(x => x?.ip).filter(Boolean).join('\n')
159
},