This commit is contained in:
ginuerzh 2018-08-04 18:08:20 +08:00
parent c4e6bcf5d9
commit be72040466
2 changed files with 5 additions and 1 deletions

View File

@ -74,6 +74,10 @@ var bypassTests = []struct {
{[]string{"www.example.*"}, false, "www.example.com", true}, {[]string{"www.example.*"}, false, "www.example.com", true},
{[]string{"www.example.*"}, false, "www.example.io", true}, {[]string{"www.example.*"}, false, "www.example.io", true},
{[]string{"www.example.*"}, false, "www.example.com.cn", 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) { func TestBypass(t *testing.T) {

View File

@ -14,7 +14,7 @@ import (
) )
// Version is the gost version. // Version is the gost version.
const Version = "2.6-dev" const Version = "2.6-rc1"
// Debug is a flag that enables the debug log. // Debug is a flag that enables the debug log.
var Debug bool var Debug bool