From be72040466fd08a9513994c97f296615c5a2b495 Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Sat, 4 Aug 2018 18:08:20 +0800 Subject: [PATCH] 2.6-rc1 --- bypass_test.go | 4 ++++ gost.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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