Skip to content

Commit

Permalink
[refactor] use quick mode for ipv6.
Browse files Browse the repository at this point in the history
  • Loading branch information
peanut996 committed Dec 19, 2023
1 parent 0ca8b1e commit 93bb2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/warping.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (w *Warping) appendIPData(data *utils.PingData) {
func loadWarpIPRanges() (ipAddrs []*UDPAddr) {
ips := loadIPRanges()
addrs := generateIPAddrs(ips)
if QuickMode && len(addrs) > quickModeMaxIpNum && !IPv6Mode {
if QuickMode && len(addrs) > quickModeMaxIpNum {
return addrs[:quickModeMaxIpNum]
}
return addrs
Expand Down

0 comments on commit 93bb2b7

Please sign in to comment.