mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
parent
b2becaffe3
commit
b6ea3eac16
1 changed files with 2 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue