1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-09-20 04:25:59 +08:00

fix: remote dst parse

This commit is contained in:
wwqgtxx
2025-05-31 22:57:05 +08:00
parent c0f452b540
commit 71a8705636

View File

@ -223,7 +223,7 @@ type conn struct {
func (c *conn) RemoteDestination() string {
if remoteAddr := c.RemoteAddr(); remoteAddr != nil {
m := C.Metadata{}
if err := m.SetRemoteAddr(remoteAddr); err != nil {
if err := m.SetRemoteAddr(remoteAddr); err == nil {
if m.Valid() {
return m.String()
}