为了更好的调试,准备重构

Signed-off-by: dmy@lab <dmy@lab.com>
This commit is contained in:
dmy@lab
2015-10-24 16:07:23 +08:00
parent d4c3e2ada5
commit f0d343cebb
7 changed files with 69 additions and 40 deletions

View File

@@ -8,10 +8,12 @@ var DestIP string
var DestPort int
var ListenPort int
var EncryptSide string
var LogTo string
func init() {
flag.StringVar(&DestIP, "destip", "", "Destination IP")
flag.StringVar(&EncryptSide, "encrypt", "", "Encrypt Side")
flag.StringVar(&LogTo, "log", "stdout", "Log to where")
flag.IntVar(&DestPort, "destport", 0, "Destination Port")
flag.IntVar(&ListenPort, "listenport", 0, "Listen Port")
}