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
9092139e
ROOT
/
adapter
/
router.go
Search
History
94 lines
|
ISO-8859-1
|
2 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Router
Service
Outbounds
()
:
[]Outbound
Outbound
(tag string)
:
(Outbound, bool)
DefaultOutbound
(network string)
:
Outbound
RouteConnection
(ctx context.Context, conn net.Conn, metadata InboundContext)
:
error
RoutePacketConnection
(ctx context.Context, conn N.PacketConn, metadata InboundContext)
:
error
RouteIPConnection
(ctx context.Context, conn tun.RouteContext, metadata InboundContext)
:
tun.RouteAction
NatRequired
(outbound string)
:
bool
GeoIPReader
()
:
*geoip.Reader
LoadGeosite
(code string)
:
(Rule, error)
Exchange
(ctx context.Context, message *mdns.Msg)
:
(*mdns.Msg, error)
Lookup
(ctx context.Context, domain string, strategy dns.DomainStrategy)
:
([]netip.Addr, error)
LookupDefault
(ctx context.Context, domain string)
:
([]netip.Addr, error)
InterfaceFinder
()
:
control.InterfaceFinder
DefaultInterface
()
:
string
AutoDetectInterface
()
:
bool
AutoDetectInterfaceFunc
()
:
control.Func
DefaultMark
()
:
int
NetworkMonitor
()
:
tun.NetworkUpdateMonitor
InterfaceMonitor
()
:
tun.DefaultInterfaceMonitor
PackageManager
()
:
tun.PackageManager
Rules
()
:
[]Rule
IPRules
()
:
[]IPRule
TimeService
ClashServer
()
:
ClashServer
SetClashServer
(server ClashServer)
V2RayServer
()
:
V2RayServer
SetV2RayServer
(server V2RayServer)
routerContextKey
ContextWithRouter
(ctx context.Context, router Router)
:
context.Context
RouterFromContext
(ctx context.Context)
:
Router
Rule
Service
Type
()
:
string
UpdateGeosite
()
:
error
Match
(metadata *InboundContext)
:
bool
Outbound
()
:
string
String
()
:
string
DNSRule
Rule
DisableCache
()
:
bool
IPRule
Rule
Action
()
:
tun.ActionType
InterfaceUpdateListener
InterfaceUpdated
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover