diff --git a/bypass_test.go b/bypass_test.go index 975b769..5e63495 100644 --- a/bypass_test.go +++ b/bypass_test.go @@ -74,6 +74,10 @@ var bypassTests = []struct { {[]string{"www.example.*"}, false, "www.example.com", true}, {[]string{"www.example.*"}, false, "www.example.io", true}, {[]string{"www.example.*"}, false, "www.example.com.cn", true}, + + {[]string{".example.com"}, false, "www.example.com", true}, + {[]string{".example.com"}, false, "example.com", true}, + {[]string{".example.com"}, false, "www.example.com.cn", false}, } func TestBypass(t *testing.T) { diff --git a/gost.go b/gost.go index cad43dc..dfe1189 100644 --- a/gost.go +++ b/gost.go @@ -14,7 +14,7 @@ import ( ) // Version is the gost version. -const Version = "2.6-dev" +const Version = "2.6-rc1" // Debug is a flag that enables the debug log. var Debug bool