mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-06 04:08:40 +00:00
Fix: tests
This commit is contained in:
parent
06fc82bad1
commit
fc8b580017
2 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,10 @@ type SniffingMatcher struct {
|
|||
func NewSniffingMatcher(sc *SniffingConfig) (*SniffingMatcher, error) {
|
||||
m := new(SniffingMatcher)
|
||||
|
||||
if sc == nil {
|
||||
return m, nil
|
||||
}
|
||||
|
||||
if sc.DomainsExcluded != nil {
|
||||
exDomain, err := domain.NewDomainMatcher(sc.DomainsExcluded)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue