Parse X-Forward-For in HTTP requests

This commit is contained in:
世界 committed 2022-08-23 19:53:04 +08:00
1 parent e750c747c6
commit 9f6ff54a76
14 files changed
+38 -59

No files matched your search

-3
View File
@@ -4,7 +4,6 @@ import (
"strings"
"github.com/sagernet/sing-box/adapter"
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/domain"
)
@@ -16,8 +15,6 @@ type DomainItem struct {
}
func NewDomainItem(domains []string, domainSuffixes []string) *DomainItem {
domains = common.Uniq(domains)
domainSuffixes = common.Uniq(domainSuffixes)
var description string
if dLen := len(domains); dLen > 0 {
if dLen == 1 {