mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-22 21:23:14 +08:00
parent
544e0f137d
commit
815a060309
@ -87,11 +87,8 @@ type Metadata struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *Metadata) RemoteAddress() string {
|
func (m *Metadata) RemoteAddress() string {
|
||||||
if m.DstIP != nil {
|
return net.JoinHostPort(m.String(), m.DstPort)
|
||||||
return net.JoinHostPort(m.DstIP.String(), m.DstPort)
|
|
||||||
} else {
|
|
||||||
return net.JoinHostPort(m.String(), m.DstPort)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Metadata) SourceAddress() string {
|
func (m *Metadata) SourceAddress() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user