Update metadata.go

revet commit 13012a9
This commit is contained in:
Meta 2022-04-10 00:47:22 +08:00 committed by GitHub
parent 544e0f137d
commit 815a060309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,11 +87,8 @@ type Metadata struct {
}
func (m *Metadata) RemoteAddress() string {
if m.DstIP != nil {
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 {