Chore: code style
This commit is contained in:
parent
7e2c6e5188
commit
fe76cbf31c
1 changed files with 0 additions and 6 deletions
|
@ -77,9 +77,6 @@ func NewTCPTracker(conn C.Conn, manager *Manager, metadata *C.Metadata, rule C.R
|
||||||
if rule != nil {
|
if rule != nil {
|
||||||
t.trackerInfo.Rule = rule.RuleType().String()
|
t.trackerInfo.Rule = rule.RuleType().String()
|
||||||
t.trackerInfo.RulePayload = rule.Payload()
|
t.trackerInfo.RulePayload = rule.Payload()
|
||||||
//if rule.RuleType() == C.GEOSITE || rule.RuleType() == C.GEOIP {
|
|
||||||
// t.trackerInfo.Rule = t.trackerInfo.Rule + " (" + rule.Payload() + ")"
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
manager.Join(t)
|
manager.Join(t)
|
||||||
|
@ -137,9 +134,6 @@ func NewUDPTracker(conn C.PacketConn, manager *Manager, metadata *C.Metadata, ru
|
||||||
if rule != nil {
|
if rule != nil {
|
||||||
ut.trackerInfo.Rule = rule.RuleType().String()
|
ut.trackerInfo.Rule = rule.RuleType().String()
|
||||||
ut.trackerInfo.RulePayload = rule.Payload()
|
ut.trackerInfo.RulePayload = rule.Payload()
|
||||||
//if rule.RuleType() == C.GEOSITE || rule.RuleType() == C.GEOIP {
|
|
||||||
// ut.trackerInfo.Rule = ut.trackerInfo.Rule + " (" + rule.Payload() + ")"
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
manager.Join(ut)
|
manager.Join(ut)
|
||||||
|
|
Loading…
Reference in a new issue