add tls version hardcode
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 2m3s
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 2m3s
This commit is contained in:
2
main.go
2
main.go
@@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -28,6 +29,7 @@ func main() {
|
|||||||
|
|
||||||
// Поддержка протоколов для браузера и MoQ
|
// Поддержка протоколов для браузера и MoQ
|
||||||
tlsConfig.NextProtos = []string{"h3"}
|
tlsConfig.NextProtos = []string{"h3"}
|
||||||
|
tlsConfig.MinVersion = tls.VersionTLS13
|
||||||
|
|
||||||
// 2. Инициализация MoQ сервера
|
// 2. Инициализация MoQ сервера
|
||||||
moqServer := moqt.Server{
|
moqServer := moqt.Server{
|
||||||
|
|||||||
Reference in New Issue
Block a user