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

- 重命名 Common -> common,WebScan -> webscan,遵循 Go 包命名约定 - 修复模块路径大小写不匹配导致的编译错误 - 清理依赖项,优化 go.mod 文件 - 添加 Docker 测试环境配置文件 - 新增镜像拉取脚本以处理网络超时问题 - 成功编译生成 fscan v2.2.1 可执行文件 该修复解决了 Linux 系统下包名大小写敏感导致的模块解析失败问题。
67 lines
1.7 KiB
Go
67 lines
1.7 KiB
Go
package messages
|
|
|
|
/*
|
|
network.go - 网络相关消息
|
|
|
|
包含网络配置、代理设置、连接管理等相关的
|
|
国际化消息定义。
|
|
*/
|
|
|
|
// NetworkMessages 网络相关消息
|
|
var NetworkMessages = map[string]map[string]string{
|
|
// ========================= 网络配置消息 =========================
|
|
"network_http_proxy": {
|
|
LangZH: "HTTP代理: %s",
|
|
LangEN: "HTTP proxy: %s",
|
|
},
|
|
"network_socks5_proxy": {
|
|
LangZH: "Socks5代理: %s",
|
|
LangEN: "Socks5 proxy: %s",
|
|
},
|
|
"network_timeout": {
|
|
LangZH: "连接超时: %v",
|
|
LangEN: "Connection timeout: %v",
|
|
},
|
|
"network_web_timeout": {
|
|
LangZH: "Web超时: %v",
|
|
LangEN: "Web timeout: %v",
|
|
},
|
|
|
|
// ========================= 代理系统消息 =========================
|
|
"proxy_init_start": {
|
|
LangZH: "初始化代理系统",
|
|
LangEN: "Initializing proxy system",
|
|
},
|
|
"proxy_init_success": {
|
|
LangZH: "代理系统初始化成功",
|
|
LangEN: "Proxy system initialized successfully",
|
|
},
|
|
"proxy_init_failed": {
|
|
LangZH: "初始化代理配置失败: %v",
|
|
LangEN: "Failed to initialize proxy configuration: %v",
|
|
},
|
|
"proxy_config_sync_failed": {
|
|
LangZH: "代理配置同步失败: %v",
|
|
LangEN: "Failed to sync proxy configuration: %v",
|
|
},
|
|
"proxy_enabled": {
|
|
LangZH: "代理已启用: %s %s",
|
|
LangEN: "Proxy enabled: %s %s",
|
|
},
|
|
"proxy_disabled": {
|
|
LangZH: "代理已禁用",
|
|
LangEN: "Proxy disabled",
|
|
},
|
|
"proxy_connection_failed": {
|
|
LangZH: "代理连接失败: %v",
|
|
LangEN: "Proxy connection failed: %v",
|
|
},
|
|
"socks5_create_failed": {
|
|
LangZH: "创建SOCKS5连接失败: %v",
|
|
LangEN: "Failed to create SOCKS5 connection: %v",
|
|
},
|
|
"tls_conn_failed": {
|
|
LangZH: "TLS连接失败: %v",
|
|
LangEN: "TLS connection failed: %v",
|
|
},
|
|
} |