backend: require confirmation for signed channel updates [CI]
This commit is contained in:
1 parent
7160de2a36
commit
84f9d211bc
62 files changed
+1717
-70
No files matched your search
@@ -5,6 +5,17 @@ export const ipVersionOf = (value: string | null | undefined): IpVersion => valu
|
||||
export const IP_VERSIONS: { value: IpVersion; label: string }[] = [{ value: 'ipv4', label: 'IPv4' }, { value: 'ipv6', label: 'IPv6' }]
|
||||
export const lineIdFor = (id: string, version: IpVersion): string => id.replace(/~ipv6$/, '') + (version === 'ipv6' ? '~ipv6' : '')
|
||||
|
||||
export const IPV6_STATES: Record<string, string> = {
|
||||
ready: 'IPv6 网络已就绪',
|
||||
address_not_configured: '面板未配置 IPv6 地址',
|
||||
unsupported: '运行环境不支持 IPv6',
|
||||
no_global_address: '机器或容器未获得全局 IPv6 地址',
|
||||
not_listening: 'Agent 只监听 IPv4,请检查 listen.bind',
|
||||
no_default_route: '缺少 IPv6 默认路由',
|
||||
unknown: '尚未取得 IPv6 诊断,请检查 Agent 版本',
|
||||
container_network_not_ready: '宿主有 IPv6,但容器网络未就绪,请检查网络模式',
|
||||
}
|
||||
|
||||
export function IpVersionPicker({ value, onChange }: { value: IpVersion; onChange: (value: IpVersion) => void }) {
|
||||
return <Segmented options={IP_VERSIONS} value={value} onChange={onChange} />
|
||||
}
|
||||
Reference in new issue
Block a user