feat: 添加API地址和加密密钥配置,重构API服务启动逻辑

This commit is contained in:
tongque
2025-04-22 19:03:42 +08:00
parent f921d81a76
commit 16e40fe7ed
5 changed files with 68 additions and 31 deletions
+2
View File
@@ -152,6 +152,8 @@ func Flag(Info *HostInfo) {
// ═════════════════════════════════════════════════
flag.StringVar(&Shellcode, "sc", "", GetText("flag_shellcode"))
flag.StringVar(&Language, "lang", "zh", GetText("flag_language"))
flag.StringVar(&ApiAddr, "api", "", GetText("flag_api"))
flag.StringVar(&SecretKey, "secret", "", GetText("flag_api_key"))
// 解析命令行参数
parseCommandLineArgs()