mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-05 08:46:59 +08:00
重构代码, 支持 use as library.
现在根目录作为一个可用的库,而可执行文件的代码放在 cmd/verysimple 文件夹中。 只是粗略地使其能够运行,有待进一步重构完善。 同时更新了 Makefile 和 .github/workflows
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user