Преглед изворни кода

扩展加密传递

Signed-off-by: 716 <[email protected]>
716 пре 3 година
родитељ
комит
e31725ecb3
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 5 0
      cmd/chinesesubfinder/main.go
  2. 1 0
      internal/pkg/global_value/global_value.go

+ 5 - 0
cmd/chinesesubfinder/main.go

@@ -19,6 +19,8 @@ func init() {
 
 
 	global_value.AppVersion = AppVersion
 	global_value.AppVersion = AppVersion
 
 
+	global_value.ExtEnCode = ExtEnCode
+
 	if my_util.OSCheck() == false {
 	if my_util.OSCheck() == false {
 		log_helper.GetLogger().Panicln(`You should search runtime.GOOS in the project, Implement unimplemented function`)
 		log_helper.GetLogger().Panicln(`You should search runtime.GOOS in the project, Implement unimplemented function`)
 	}
 	}
@@ -87,6 +89,9 @@ func readCustomPortFile() int {
 */
 */
 var AppVersion = "unknow"
 var AppVersion = "unknow"
 
 
+// go build -ldflags="-X main.AppVersion=aabb -X main.ExtEnCode=ccdd" .
+var ExtEnCode = "abcdefg1234567890"
+
 const (
 const (
 	defPort    = 19035
 	defPort    = 19035
 	customPort = "CustomPort"
 	customPort = "CustomPort"

+ 1 - 0
internal/pkg/global_value/global_value.go

@@ -10,6 +10,7 @@ func Init(customExts []string) {
 // util.go
 // util.go
 var (
 var (
 	AppVersion           = "" // 程序的版本号
 	AppVersion           = "" // 程序的版本号
+	ExtEnCode            = "" // 扩展加密部分
 	ConfigRootDirFPath   = ""
 	ConfigRootDirFPath   = ""
 	DefDebugFolder       = ""
 	DefDebugFolder       = ""
 	DefTmpFolder         = ""
 	DefTmpFolder         = ""