修订代码, 实现trojan协议

This commit is contained in:
hahahrfool
2022-04-08 22:44:01 +08:00
parent ce735dbb99
commit 3dc53554df
14 changed files with 436 additions and 16 deletions

View File

@@ -17,6 +17,11 @@ func init() {
rand.Seed(time.Now().Unix())
}
type ByteReader interface {
ReadByte() (byte, error)
Read(p []byte) (n int, err error)
}
func IsFlagPassed(name string) bool {
found := false
flag.Visit(func(f *flag.Flag) {