github.com/igoogolx/clash@v1.19.8/rule/base.go (about)

     1  package rules
     2  
     3  import (
     4  	"errors"
     5  )
     6  
     7  var (
     8  	errPayload = errors.New("payload error")
     9  
    10  	noResolve = "no-resolve"
    11  )
    12  
    13  func HasNoResolve(params []string) bool {
    14  	for _, p := range params {
    15  		if p == noResolve {
    16  			return true
    17  		}
    18  	}
    19  	return false
    20  }