feat: 结构化IPV4和IPV6的代码

This commit is contained in:
spiritlhl committed 2025-04-11 13:41:09 +00:00
1 parent a832d354da
commit aad93e51f8
3 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@ import (
"github.com/oneclickvirt/backtrace/model"
)
func BackTrace(test bool) {
if test {
func BackTrace(enableIpv6 bool) {
if enableIpv6 {
ipv4Count := len(model.Ipv4s)
ipv6Count := len(model.Ipv6s)
totalCount := ipv4Count + ipv6Count