Improve: auto change payload to lowercase

This commit is contained in:
Dreamacro
2018-11-21 13:59:39 +08:00
parent 01a477bd3d
commit c7a349e1fe
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
package rules
import (
"strings"
C "github.com/Dreamacro/clash/constant"
)
@ -30,7 +32,7 @@ func (d *Domain) Payload() string {
func NewDomain(domain string, adapter string) *Domain {
return &Domain{
domain: domain,
domain: strings.ToLower(domain),
adapter: adapter,
}
}