Skip to content

Commit

Permalink
修复ft时个别地方未应用色彩参数的问题
Browse files Browse the repository at this point in the history
 交互式变基操作正在进行中;至 cbc511f
 最后完成的命令(1 条命令被执行):
    pick 356e3db 修复ft时个别地方未应用色彩参数的问题
 接下来要执行的命令(剩余 1 条命令):
    pick 9ee7c3f 修正在ECMP网络下的表现 之前ECMP网络可能会导致一次trace的结果来自不同flow(按icmp id区分的策略下),目前id不再携带TTL信息,因此一次trace的id将保持一致。  要提交的变更: 	修改:     trace/icmp_ipv4.go 	修改:     trace/icmp_ipv6.go
 您在执行将分支 'main' 变基到 'cbc511f' 的操作。

 要提交的变更:
	修改:     fast_trace/fast_trace.go
  • Loading branch information
tsosunchia committed Apr 6, 2024
1 parent cbc511f commit c6eb9bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fast_trace/fast_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ type IpListElement struct {
var oe = false

func (f *FastTracer) tracert(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).Sprint("『 "+location+ispCollection.ISPName+" 』"),
)
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.IP, f.ParamsFastTrace.MaxHops, f.ParamsFastTrace.PktSize)

ip, err := util.DomainLookUp(ispCollection.IP, "4", "", true)
Expand Down

0 comments on commit c6eb9bb

Please sign in to comment.