feat(auth): enhance IP restriction handling with CIDR support

This commit is contained in:
CaIon committed 2025-12-15 17:24:09 +08:00
1 parent 1bd0d8de02
commit 947a763a1a
12 files changed
+63 -47

No files matched your search

@@ -557,11 +557,11 @@ const EditTokenModal = (props) => {
<Col span={24}>
<Form.TextArea
field='allow_ips'
label={t('IP白名单')}
label={t('IP白名单(支持CIDR表达式)')}
placeholder={t('允许的IP,一行一个,不填写则不限制')}
autosize
rows={1}
extraText={t('请勿过度信任此功能,IP可能被伪造')}
extraText={t('请勿过度信任此功能,IP可能被伪造,请配合nginx和cdn等网关使用')}
showClear
style={{ width: '100%' }}
/>