Skip to content

Commit

Permalink
Update metadata.go
Browse files Browse the repository at this point in the history
revet commit 13012a9
  • Loading branch information
Meta committed Apr 9, 2022
1 parent 544e0f1 commit 815a060
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions constant/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 815a060

Please sign in to comment.