feat: read config from env (#104)

* feat: read config from env

* ci: skip some tests
This commit is contained in:
UUBulb
2024-11-30 11:40:48 +08:00
committed by GitHub
parent 48093faf98
commit ea6f119e72
9 changed files with 181 additions and 114 deletions
+5
View File
@@ -2,6 +2,7 @@ package utls_test
import (
"net/http"
"os"
"testing"
utls "github.com/refraction-networking/utls"
@@ -13,6 +14,10 @@ import (
const url = "https://www.patreon.com/login"
func TestCloudflareDetection(t *testing.T) {
if ci := os.Getenv("CI"); ci != "" { // skip if test on CI
return
}
client := http.DefaultClient
t.Logf("testing connection to %s", url)