mirror of
https://github.com/nadoo/glider.git
synced 2025-04-22 04:02:07 +08:00
docs: annotations
This commit is contained in:
parent
05559703a3
commit
c2e7b21ce6
@ -135,15 +135,17 @@ func (p *Proxy) findDialer(network string, dstAddr string) *FwdrGroup {
|
||||
case "tport":
|
||||
matched = m.Matcher.Match(port)
|
||||
case "network":
|
||||
if network == "tcp" {
|
||||
if strings.HasPrefix(network, "tcp") {
|
||||
matched = m.Matcher.Match(matcher.TCP)
|
||||
} else if network == "udp" {
|
||||
} else if strings.HasPrefix(network, "udp") {
|
||||
matched = m.Matcher.Match(matcher.UDP)
|
||||
}
|
||||
case "sport", "sip":
|
||||
// TODO: UNSUPPORTED
|
||||
case "app":
|
||||
// TODO: UNSUPPORTED
|
||||
// NOTE: should get the inbound conn,
|
||||
// and there would be a break change for current code structure.
|
||||
}
|
||||
if matched {
|
||||
break
|
||||
|
@ -24,7 +24,7 @@ const (
|
||||
|
||||
type RoutingA struct {
|
||||
DefaultOut string
|
||||
DomainStrategy DomainStrategy // FIXME: not valid
|
||||
DomainStrategy DomainStrategy // TODO: not valid. there would be some changes for current code structure
|
||||
Rules []RoutingRule
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user