Chore: fix typos

This commit is contained in:
yaling888
2022-04-21 03:54:34 +08:00
parent 567fe74f10
commit 450c608c83
9 changed files with 41 additions and 37 deletions

View File

@ -88,11 +88,7 @@ type Metadata struct {
}
func (m *Metadata) RemoteAddress() string {
if m.DstIP.IsValid() {
return net.JoinHostPort(m.DstIP.String(), m.DstPort)
} else {
return net.JoinHostPort(m.String(), m.DstPort)
}
return net.JoinHostPort(m.String(), m.DstPort)
}
func (m *Metadata) SourceAddress() string {