Skip to content

Commit

Permalink
fix:ftv6 color mode some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsosunchia committed Jul 16, 2024
1 parent 052fe2d commit 2e9428c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast_trace/fast_trace ipv6.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package fastTrace

import (
"fmt"
"github.com/fatih/color"
"github.com/nxtrace/NTrace-core/ipgeo"
"github.com/nxtrace/NTrace-core/printer"
"github.com/nxtrace/NTrace-core/trace"
Expand All @@ -16,7 +17,7 @@ import (
//var pFastTracer ParamsFastTrace

func (f *FastTracer) tracert_v6(location string, ispCollection ISPCollection) {
fmt.Printf("%s『%s %s 』%s\n", printer.YELLOW_PREFIX, location, ispCollection.ISPName, printer.RESET_PREFIX)
fmt.Fprintf(color.Output, "%s\n", color.New(color.FgYellow, color.Bold).Sprintf("『%s %s 』", location, ispCollection.ISPName))
fmt.Printf("traceroute to %s, %d hops max, %d byte packets\n", ispCollection.IPv6, f.ParamsFastTrace.MaxHops, f.ParamsFastTrace.PktSize)

ip, err := util.DomainLookUp(ispCollection.IPv6, "6", "", true)
Expand Down

0 comments on commit 2e9428c

Please sign in to comment.