This commit is contained in:
gospider
2025-02-28 15:17:25 +08:00
parent 877d36c992
commit d2ef065dad
3 changed files with 16 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"crypto/tls"
"log"
"net"
"testing"
"fmt"
@@ -89,7 +90,7 @@ func server() {
fmt.Fprint(w, "method is not supported")
}
})
tlsCert, err := gtls.CreateProxyCertWithName("localhost")
tlsCert, err := gtls.CreateCertWithAddr(net.IP{127, 0, 0, 1})
if err != nil {
panic(err)
}