mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00

- 新增多个预定义端口组常量到base/Constants.go - 实现-p web/main/db/service/common/all参数支持 - 删除重复的DefaultPorts常量和database端口组 - 合并GetPortGroups和GetTargetPortGroups函数避免重复 - 统一所有端口组定义到统一位置便于维护
20 lines
590 B
Go
20 lines
590 B
Go
package common
|
||
|
||
import "github.com/shadow1ng/fscan/common/base"
|
||
|
||
/*
|
||
Ports.go - 端口常量(向后兼容层)
|
||
|
||
此文件保持向后兼容,实际常量定义已迁移到Core/Constants.go
|
||
*/
|
||
|
||
// 向后兼容的端口常量 - 引用base包中的定义
|
||
var (
|
||
WebPorts = base.WebPorts // Web服务端口组
|
||
MainPorts = base.MainPorts // 主要服务端口组
|
||
DbPorts = base.DbPorts // 数据库端口组
|
||
ServicePorts = base.ServicePorts // 服务端口组
|
||
CommonPorts = base.CommonPorts // 常用端口组
|
||
AllPorts = base.AllPorts // 全部端口
|
||
)
|