This commit is contained in:
GoEdgeLab
2024-07-27 13:29:26 +08:00
parent d8a8c345a2
commit 2f3981704e
210 changed files with 1290 additions and 934 deletions

View File

@@ -2,6 +2,7 @@ package sslconfigs
import (
"crypto/tls"
"github.com/iwind/TeaGo/maps"
)

View File

@@ -7,12 +7,13 @@ import (
"encoding/pem"
"errors"
"fmt"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
"github.com/iwind/TeaGo/lists"
"reflect"
"strconv"
"time"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
"github.com/iwind/TeaGo/lists"
)
// SSLCertConfig SSL证书

View File

@@ -3,9 +3,10 @@
package sslconfigs_test
import (
"testing"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
"github.com/iwind/TeaGo/assert"
"testing"
)
func TestSSLCertConfig_MatchDomain(t *testing.T) {

View File

@@ -1,9 +1,10 @@
package sslconfigs
import (
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"strconv"
"strings"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
)
// HSTS设置

View File

@@ -1,8 +1,9 @@
package sslconfigs
import (
"github.com/iwind/TeaGo/assert"
"testing"
"github.com/iwind/TeaGo/assert"
)
func TestHSTSConfig(t *testing.T) {

View File

@@ -5,9 +5,10 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"time"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"golang.org/x/net/http2"
"time"
)
// TLSVersion TLS Version

View File

@@ -4,10 +4,11 @@ package sslconfigs_test
import (
"context"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
"github.com/iwind/TeaGo/assert"
"testing"
"time"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
"github.com/iwind/TeaGo/assert"
)
func TestSSLPolicy_MatchDomain(t *testing.T) {