crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Files
🤬
Sign In
f25296fb
ROOT
/
route
/
rule_dns.go
Search
History
412 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
NewDNSRule
(router adapter.Router, logger log.ContextLogger, options option.DNSRule)
:
(adapter.DNSRule, error)
_
:
adapter.DNSRule
DefaultDNSRule
items
:
[]RuleItem
sourceAddressItems
:
[]RuleItem
sourcePortItems
:
[]RuleItem
destinationAddressItems
:
[]RuleItem
destinationPortItems
:
[]RuleItem
allItems
:
[]RuleItem
invert
:
bool
outbound
:
string
disableCache
:
bool
NewDefaultDNSRule
(router adapter.Router, logger log.ContextLogger, options option.DefaultDNSRule)
:
(*DefaultDNSRule, error)
_
:
adapter.DNSRule
LogicalDNSRule
mode
:
string
rules
:
[]*DefaultDNSRule
invert
:
bool
outbound
:
string
disableCache
:
bool
NewLogicalDNSRule
(router adapter.Router, logger log.ContextLogger, options option.LogicalDNSRule)
:
(*LogicalDNSRule, error)
*DefaultDNSRule
Type
()
:
string
Start
()
:
error
Close
()
:
error
UpdateGeosite
()
:
error
Match
(metadata *adapter.InboundContext)
:
bool
Outbound
()
:
string
DisableCache
()
:
bool
String
()
:
string
*LogicalDNSRule
Type
()
:
string
UpdateGeosite
()
:
error
Start
()
:
error
Close
()
:
error
Match
(metadata *adapter.InboundContext)
:
bool
Outbound
()
:
string
DisableCache
()
:
bool
String
()
:
string
All occurrences
Please wait...
Page is in error, reload to recover