mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-24 06:39:45 +07:00
feat: support reject in dns request routing
This commit is contained in:
@ -10,9 +10,10 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
type DnsRequestOutboundIndex uint8
|
||||
type DnsRequestOutboundIndex int16
|
||||
|
||||
const (
|
||||
DnsRequestOutboundIndex_Reject DnsRequestOutboundIndex = 0xFC
|
||||
DnsRequestOutboundIndex_AsIs DnsRequestOutboundIndex = 0xFD
|
||||
DnsRequestOutboundIndex_LogicalOr DnsRequestOutboundIndex = 0xFE
|
||||
DnsRequestOutboundIndex_LogicalAnd DnsRequestOutboundIndex = 0xFF
|
||||
@ -23,6 +24,8 @@ const (
|
||||
|
||||
func (i DnsRequestOutboundIndex) String() string {
|
||||
switch i {
|
||||
case DnsRequestOutboundIndex_Reject:
|
||||
return "reject"
|
||||
case DnsRequestOutboundIndex_AsIs:
|
||||
return "asis"
|
||||
case DnsRequestOutboundIndex_LogicalOr:
|
||||
|
Reference in New Issue
Block a user