mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-09-19 20:15:59 +08:00
fix: remote dst parse
This commit is contained in:
@ -223,7 +223,7 @@ type conn struct {
|
|||||||
func (c *conn) RemoteDestination() string {
|
func (c *conn) RemoteDestination() string {
|
||||||
if remoteAddr := c.RemoteAddr(); remoteAddr != nil {
|
if remoteAddr := c.RemoteAddr(); remoteAddr != nil {
|
||||||
m := C.Metadata{}
|
m := C.Metadata{}
|
||||||
if err := m.SetRemoteAddr(remoteAddr); err != nil {
|
if err := m.SetRemoteAddr(remoteAddr); err == nil {
|
||||||
if m.Valid() {
|
if m.Valid() {
|
||||||
return m.String()
|
return m.String()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user