重构代码, 支持 use as library.

现在根目录作为一个可用的库,而可执行文件的代码放在 cmd/verysimple 文件夹中。

只是粗略地使其能够运行,有待进一步重构完善。

同时更新了 Makefile 和 .github/workflows
This commit is contained in:
e1732a364fed
2022-04-25 20:17:51 +08:00
parent a0ef5ca575
commit ba1135d0d5
21 changed files with 614 additions and 539 deletions

View File

@@ -1,4 +1,4 @@
package main
package v2ray_simple
import (
"crypto/tls"
@@ -115,8 +115,8 @@ protocol = "direct"
t.FailNow()
}
listenSer(clientEndInServer, clientEndOutClient, false)
listenSer(serverEndInServer, serverEndOutClient, false)
ListenSer(clientEndInServer, clientEndOutClient, false)
ListenSer(serverEndInServer, serverEndOutClient, false)
proxyurl := "http://127.0.0.1:" + clientListenPort