Skip to content

Commit d59a531

Browse files
committed
Tips the number of rules
1 parent 751b110 commit d59a531

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Daze is software to help you pass through the firewalls, in other words, proxy.
1919
- [Proxy Control](#proxy-control)
2020
- [File rule.ls](#file-rulels)
2121
- [File rule.cidr](#file-rulecidr)
22-
- [Links](#links)
2322

2423
# Tutorials
2524

@@ -179,4 +178,4 @@ Glob is supported, such as `R *.google.com`.
179178

180179
### File rule.cidr
181180

182-
Daze also uses a CIDR(Classless Inter-Domain Routing) file to route addresses. The CIDR file is located at "./rule.cidr", and has a lower priority than "rule.ls". When an IP address is in the CIDR file, daze will use the local network to establish the connection instead of a proxy.
181+
Daze also uses a CIDR(Classless Inter-Domain Routing) file to route addresses. The CIDR file is located at "./rule.cidr", and has a lower priority than "rule.ls".

daze.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,10 +878,12 @@ func NewAimbot(client Dialer, option *AimbotOption) *Aimbot {
878878
log.Println("main: load rule", option.Rule)
879879
routerRules := NewRouterRules()
880880
routerRules.FromFile(option.Rule)
881+
log.Println("main: size is", len(routerRules.L)+len(routerRules.R)+len(routerRules.B))
881882

882883
log.Println("main: load rule", option.Cidr)
883884
routerLocal := NewRouterIPNet()
884885
routerLocal.FromFile(option.Cidr)
886+
log.Println("main: size is", len(routerLocal.L)+len(routerLocal.R)+len(routerLocal.B))
885887

886888
routerRight := NewRouterRight(RoadRemote)
887889
routerChain := NewRouterChain(routerRules, routerLocal, routerRight)

0 commit comments

Comments
 (0)