From 815a060309968dbf8ea432fed224577a7f02ded8 Mon Sep 17 00:00:00 2001 From: Meta <84378451+MetaCubeX@users.noreply.github.com> Date: Sun, 10 Apr 2022 00:47:22 +0800 Subject: [PATCH] Update metadata.go revet commit 13012a9 --- constant/metadata.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/constant/metadata.go b/constant/metadata.go index a86b4106..97ab3db9 100644 --- a/constant/metadata.go +++ b/constant/metadata.go @@ -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 {