mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
config for on demand inbound detour
This commit is contained in:
1 parent
96053d9e12
commit
71c70416f5
3 files changed
+55
-6
No files matched your search
@@ -23,10 +23,22 @@ type DnsConfig interface {
|
||||
Settings() dns.CacheConfig
|
||||
}
|
||||
|
||||
const (
|
||||
AllocationStrategyAlways = "always"
|
||||
AllocationStrategyRandom = "random"
|
||||
AllocationStrategyExternal = "external"
|
||||
)
|
||||
|
||||
type InboundDetourAllocationConfig interface {
|
||||
Strategy() string
|
||||
Concurrency() int
|
||||
}
|
||||
|
||||
type InboundDetourConfig interface {
|
||||
Protocol() string
|
||||
PortRange() v2net.PortRange
|
||||
Tag() string
|
||||
Allocation() InboundDetourAllocationConfig
|
||||
Settings() interface{}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user