mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 10:16:47 +00:00
fix: remote dst parse
This commit is contained in:
1 parent
c0f452b540
commit
71a8705636
1 file changed
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user