mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user