add mux config

This commit is contained in:
ginuerzh 2023-10-17 21:56:29 +08:00
parent f8a19e0829
commit 61002b7c9c
3 changed files with 7 additions and 3 deletions

View File

@ -28,6 +28,7 @@ import (
_ "github.com/go-gost/x/dialer/http3"
_ "github.com/go-gost/x/dialer/icmp"
_ "github.com/go-gost/x/dialer/kcp"
_ "github.com/go-gost/x/dialer/mtcp"
_ "github.com/go-gost/x/dialer/mtls"
_ "github.com/go-gost/x/dialer/mws"
_ "github.com/go-gost/x/dialer/obfs/http"
@ -46,11 +47,13 @@ import (
// Register handlers
_ "github.com/go-gost/x/handler/auto"
_ "github.com/go-gost/x/handler/dns"
_ "github.com/go-gost/x/handler/file"
_ "github.com/go-gost/x/handler/forward/local"
_ "github.com/go-gost/x/handler/forward/remote"
_ "github.com/go-gost/x/handler/http"
_ "github.com/go-gost/x/handler/http2"
_ "github.com/go-gost/x/handler/http3"
_ "github.com/go-gost/x/handler/metrics"
_ "github.com/go-gost/x/handler/redirect/tcp"
_ "github.com/go-gost/x/handler/redirect/udp"
_ "github.com/go-gost/x/handler/relay"
@ -77,6 +80,7 @@ import (
_ "github.com/go-gost/x/listener/http3/h3"
_ "github.com/go-gost/x/listener/icmp"
_ "github.com/go-gost/x/listener/kcp"
_ "github.com/go-gost/x/listener/mtcp"
_ "github.com/go-gost/x/listener/mtls"
_ "github.com/go-gost/x/listener/mws"
_ "github.com/go-gost/x/listener/obfs/http"

2
go.mod
View File

@ -6,7 +6,7 @@ replace github.com/templexxx/cpu v0.0.7 => github.com/templexxx/cpu v0.0.10-0.20
require (
github.com/go-gost/core v0.0.0-20231015073540-f08c81460234
github.com/go-gost/x v0.0.0-20231016155358-bf5311ddc34e
github.com/go-gost/x v0.0.0-20231017135507-1759c95e7804
github.com/judwhite/go-svc v1.2.1
gopkg.in/natefinch/lumberjack.v2 v2.0.0
)

4
go.sum
View File

@ -104,8 +104,8 @@ github.com/go-gost/relay v0.4.1-0.20230916134211-828f314ddfe7 h1:qAG1OyjvdA5h221
github.com/go-gost/relay v0.4.1-0.20230916134211-828f314ddfe7/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/go.mod h1:/9QfdewqmHdaE362Hv5nDaSWLx3pCmtD870d6GaquXs=
github.com/go-gost/x v0.0.0-20231016155358-bf5311ddc34e h1:ih44YN3ZKUXEXY9QQcSv8/tDv0LWfWik/yV0HNoTSFo=
github.com/go-gost/x v0.0.0-20231016155358-bf5311ddc34e/go.mod h1:r5z7RZtFwxXTzooY4t1R/JCaPWqozNc8BCHAd2CuOcU=
github.com/go-gost/x v0.0.0-20231017135507-1759c95e7804 h1:GB3pLJcSGx+cEJcEM8CM3DNZzqQuIiFxpdiDDcbg3L8=
github.com/go-gost/x v0.0.0-20231017135507-1759c95e7804/go.mod h1:r5z7RZtFwxXTzooY4t1R/JCaPWqozNc8BCHAd2CuOcU=
github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=