Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] 支持 IPv6 后的复制交互优化 #1438

Closed
huazai-free opened this issue Feb 8, 2023 · 1 comment
Closed

[FEATURE] 支持 IPv6 后的复制交互优化 #1438

huazai-free opened this issue Feb 8, 2023 · 1 comment
Assignees
Labels

Comments

@huazai-free
Copy link
Collaborator

企业微信截图_6baacb2d-9be4-4ee5-8da3-73266b320161

@ZhuoZhuoCrayon
Copy link
Member

ZhuoZhuoCrayon commented Feb 8, 2023

弹窗提示的复制 IP 数与实际不一致
原因:部分主机可能缺少 IP / IPv6 信息,导致最终 IP 复制总数少于主机总数,例如截图,提示复制 30230 个 IP,实际有些主机 IP 信息缺失,最终复制的 IP 数少于 30230
企业微信截图_d3e1c1e9-8365-4ff5-b584-2c59c43930a5

解决方案:参考 JOB,提示实际复制的 IP 数

企业微信截图_51dce62a-d7a0-45bd-8bf0-c712fbfbf0aa

企业微信截图_cea42234-bd32-483b-ba53-4d1e7f5270cf

需要改动的范围1:Agent / 插件

host/search plugin/search 接口提供 return_field 用于跨页全选场景的「指定主机属性字段」的返回

企业微信截图_cdffe1b4-bc05-4698-9480-fb028609009d

需要改动的范围2:任务历史

后台数据已有:inner_ip inner_ipv6

任务历史的文案也根据使用场景调整

复制成功(1个异常IP)
复制成功(1个异常IPv6)
...

注意处理 IP 信息缺失情况下,可能出现复制文本「有空行」的情况 👇
bad

1.1.1.1

1.1.1.2

good

1.1.1.1
1.1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants