add p2p option for tun handler

This commit is contained in:
ginuerzh 2024-04-26 20:58:27 +08:00
parent e245526b33
commit 2161b97064
4 changed files with 7 additions and 3 deletions

View File

@ -79,6 +79,8 @@ go build
docker run --rm gogost/gost -V docker run --rm gogost/gost -V
``` ```
## 工具
### WebUI(非官方) ### WebUI(非官方)
[cnwhy/gost-ui](https://github.com/cnwhy/gost-ui) [cnwhy/gost-ui](https://github.com/cnwhy/gost-ui)

View File

@ -79,6 +79,8 @@ go build
docker run --rm gogost/gost -V docker run --rm gogost/gost -V
``` ```
## Tools
### WebUI (Unofficial) ### WebUI (Unofficial)
[cnwhy/gost-ui](https://github.com/cnwhy/gost-ui) [cnwhy/gost-ui](https://github.com/cnwhy/gost-ui)

2
go.mod
View File

@ -8,7 +8,7 @@ replace github.com/templexxx/cpu v0.0.7 => github.com/templexxx/cpu v0.0.10-0.20
require ( require (
github.com/go-gost/core v0.0.0-20240424153155-5d6c2115fa15 github.com/go-gost/core v0.0.0-20240424153155-5d6c2115fa15
github.com/go-gost/x v0.0.0-20240425134511-f2a5089c29eb github.com/go-gost/x v0.0.0-20240426125656-332a3a1cd09f
github.com/judwhite/go-svc v1.2.1 github.com/judwhite/go-svc v1.2.1
) )

4
go.sum
View File

@ -65,8 +65,8 @@ github.com/go-gost/relay v0.5.0 h1:JG1tgy/KWiVXS0ukuVXvbM0kbYuJTWxYpJ5JwzsCf/c=
github.com/go-gost/relay v0.5.0/go.mod h1:lcX+23LCQ3khIeASBo+tJ/WbwXFO32/N5YN6ucuYTG8= github.com/go-gost/relay v0.5.0/go.mod h1:lcX+23LCQ3khIeASBo+tJ/WbwXFO32/N5YN6ucuYTG8=
github.com/go-gost/tls-dissector v0.0.2-0.20220408131628-aac992c27451 h1:xj8gUZGYO3nb5+6Bjw9+tsFkA9sYynrOvDvvC4uDV2I= github.com/go-gost/tls-dissector v0.0.2-0.20220408131628-aac992c27451 h1:xj8gUZGYO3nb5+6Bjw9+tsFkA9sYynrOvDvvC4uDV2I=
github.com/go-gost/tls-dissector v0.0.2-0.20220408131628-aac992c27451/go.mod h1:/9QfdewqmHdaE362Hv5nDaSWLx3pCmtD870d6GaquXs= github.com/go-gost/tls-dissector v0.0.2-0.20220408131628-aac992c27451/go.mod h1:/9QfdewqmHdaE362Hv5nDaSWLx3pCmtD870d6GaquXs=
github.com/go-gost/x v0.0.0-20240425134511-f2a5089c29eb h1:Z5KsKqtVnk5gZrqv+4JCPW2EIb//h5ngweolV7gxDh4= github.com/go-gost/x v0.0.0-20240426125656-332a3a1cd09f h1:L8Bj0PkvP1INong0K/0CLPB01fCspyPaS/1QB28yCZc=
github.com/go-gost/x v0.0.0-20240425134511-f2a5089c29eb/go.mod h1:4n4ge2x0JVzyJQX0oim2e3T+CNDY6k82XCUIAfFgs4s= github.com/go-gost/x v0.0.0-20240426125656-332a3a1cd09f/go.mod h1:4n4ge2x0JVzyJQX0oim2e3T+CNDY6k82XCUIAfFgs4s=
github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=