增加对多MPLS情景的支持,支持通过ENV或参数禁用MPLS功能

要提交的变更:
	修改:     cmd/cmd.go
	修改:     printer/basic.go
	修改:     printer/printer.go
	修改:     printer/realtime_printer.go
	修改:     trace/icmp_ipv4.go
	修改:     trace/icmp_ipv6.go
	修改:     trace/trace.go
	修改:     util/util.go
This commit is contained in:
tsosunchia
2023-10-06 06:02:09 +08:00
parent 2113264336
commit b733ef2d82
8 changed files with 128 additions and 48 deletions

View File

@@ -109,7 +109,4 @@ func applyLangSetting(h *trace.Hop) {
}
}
if len(h.MPLS) > 1 {
h.Hostname += " [MPLS: " + h.MPLS + "]"
}
}