fix: relay conn error when addr is domain

This commit is contained in:
Skyxim 2022-04-23 10:26:22 +08:00
parent 0947cb4a5a
commit eb6f7e3158

View file

@ -24,6 +24,7 @@ func addrToMetadata(rawAddress string) (addr *C.Metadata, err error) {
DstIP: netip.Addr{}, DstIP: netip.Addr{},
DstPort: port, DstPort: port,
} }
err = nil
return return
} else if ip.Is4() { } else if ip.Is4() {
addr = &C.Metadata{ addr = &C.Metadata{