IP 管理添加白名单字段并优化展示格式
This commit is contained in:
@@ -161,7 +161,7 @@ export default function ChannelsPage(props: ChannelsPageProps) {
|
||||
return <div className={`flex flex-col gap-1`}>
|
||||
{row.original.auth_ip && (<>
|
||||
<span className={`text-weak`}>IP 白名单</span>
|
||||
<span>{row.original.user_host}</span>
|
||||
<span>{row.original.whitelists.replaceAll(",", ", ")}</span>
|
||||
</>)}
|
||||
{row.original.auth_pass && (<>
|
||||
<span className={`text-weak`}>账号密码</span>
|
||||
|
||||
@@ -78,6 +78,7 @@ export type Channel = {
|
||||
user_host: string
|
||||
node_host: string
|
||||
auth_ip: boolean
|
||||
whitelists: string
|
||||
auth_pass: boolean
|
||||
protocol: number
|
||||
username: string
|
||||
|
||||
Reference in New Issue
Block a user