增加 macvtap 模式支持

This commit is contained in:
bjdgyc
2021-08-12 18:34:09 +08:00
parent 0ffa9578cf
commit 58cdcbe192
4 changed files with 645 additions and 113 deletions

View File

@@ -44,10 +44,10 @@ func startTls() {
// 设置tls信息
tlsConfig := &tls.Config{
NextProtos: []string{"http/1.1"},
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: true,
Certificates: certs,
NextProtos: []string{"http/1.1"},
MinVersion: tls.VersionTLS12,
Certificates: certs,
// InsecureSkipVerify: true,
}
srv := &http.Server{
Addr: addr,