From 0687f94fc7e31828a65e5c97261e2ec68f0b99f1 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Thu, 28 Nov 2024 20:41:52 +0800 Subject: [PATCH] remove --- export/export.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 export/export.go diff --git a/export/export.go b/export/export.go deleted file mode 100644 index 8b2f8c1..0000000 --- a/export/export.go +++ /dev/null @@ -1,34 +0,0 @@ -package export - -import ( - "github.com/esrrhs/gohome/loggo" - "github.com/esrrhs/spp/proxy" - "strings" -) - -func NewClient(ty string, proto string, server string, name string, proxyproto string, fromaddr string, toaddr string) { - level := loggo.LEVEL_INFO - loggo.Ini(loggo.Config{ - Level: level, - Prefix: "spp-android", - MaxDay: 3, - NoLogFile: true, - NoPrint: false, - }) - loggo.Info("start...") - - config := proxy.DefaultConfig() - - proxyprotos := strings.Split(proxyproto, ",") - fromaddrs := strings.Split(fromaddr, ",") - toaddrs := strings.Split(toaddr, ",") - - clienttypestr := strings.Replace(ty, "_client", "", -1) - clienttypestr = strings.ToUpper(clienttypestr) - _, err := proxy.NewClient(config, proto, server, name, clienttypestr, proxyprotos, fromaddrs, toaddrs) - if err != nil { - loggo.Error("main NewClient fail %s", err.Error()) - return - } - loggo.Info("Client start") -}