add http2 tunnel

This commit is contained in:
ginuerzh
2021-12-15 15:19:19 +08:00
parent c651743ea2
commit 5bd3c25c65
12 changed files with 392 additions and 118 deletions

View File

@ -15,6 +15,7 @@ import (
// Register dialers
_ "github.com/go-gost/gost/pkg/dialer/ftcp"
_ "github.com/go-gost/gost/pkg/dialer/http2"
_ "github.com/go-gost/gost/pkg/dialer/http2/h2"
_ "github.com/go-gost/gost/pkg/dialer/tcp"
_ "github.com/go-gost/gost/pkg/dialer/udp"

View File

@ -34,7 +34,7 @@ func buildDefaultTLSConfig(cfg *config.TLSConfig) {
}
log.Warn("load TLS certificate files failed, use random generated certificate")
} else {
log.Debug("load TLS certificate files OK")
log.Info("load TLS certificate files OK")
}
tls_util.DefaultConfig = tlsConfig
}