mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-23 01:04:40 +07:00
fix: dns mismatched qname matching (#99)
This commit is contained in:
parent
38b2f7b169
commit
d9f6fa7aee
@ -19,7 +19,7 @@ const (
|
|||||||
DnsRequestOutboundIndex_LogicalAnd DnsRequestOutboundIndex = 0xFF
|
DnsRequestOutboundIndex_LogicalAnd DnsRequestOutboundIndex = 0xFF
|
||||||
DnsRequestOutboundIndex_LogicalMask DnsRequestOutboundIndex = 0xFE
|
DnsRequestOutboundIndex_LogicalMask DnsRequestOutboundIndex = 0xFE
|
||||||
|
|
||||||
DnsRequestOutboundIndex_UserDefinedMax = DnsRequestOutboundIndex_AsIs - 1
|
DnsRequestOutboundIndex_UserDefinedMax = DnsRequestOutboundIndex_Reject - 1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i DnsRequestOutboundIndex) String() string {
|
func (i DnsRequestOutboundIndex) String() string {
|
||||||
|
@ -73,7 +73,7 @@ func (b *RequestMatcherBuilder) addQName(f *config_parser.Function, key string,
|
|||||||
}
|
}
|
||||||
b.simulatedDomainSet = append(b.simulatedDomainSet, routing.DomainSet{
|
b.simulatedDomainSet = append(b.simulatedDomainSet, routing.DomainSet{
|
||||||
Key: consts.RoutingDomainKey(key),
|
Key: consts.RoutingDomainKey(key),
|
||||||
RuleIndex: len(b.simulatedDomainSet),
|
RuleIndex: len(b.rules),
|
||||||
Domains: values,
|
Domains: values,
|
||||||
})
|
})
|
||||||
upstreamId, err := b.upstreamToId(upstream.Name)
|
upstreamId, err := b.upstreamToId(upstream.Name)
|
||||||
|
@ -132,7 +132,7 @@ func (b *ResponseMatcherBuilder) addQName(f *config_parser.Function, key string,
|
|||||||
}
|
}
|
||||||
b.simulatedDomainSet = append(b.simulatedDomainSet, routing.DomainSet{
|
b.simulatedDomainSet = append(b.simulatedDomainSet, routing.DomainSet{
|
||||||
Key: consts.RoutingDomainKey(key),
|
Key: consts.RoutingDomainKey(key),
|
||||||
RuleIndex: len(b.simulatedDomainSet),
|
RuleIndex: len(b.rules),
|
||||||
Domains: values,
|
Domains: values,
|
||||||
})
|
})
|
||||||
upstreamId, err := b.upstreamToId(upstream.Name)
|
upstreamId, err := b.upstreamToId(upstream.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user