mirror of https://github.com/MagicStack/uvloop.git
Fix typo in create_datagram_endpoint
Typo causes create_datagram_endpoint to send traffic to the local_addr instead of the remote_addr. Closes #45.
This commit is contained in:
parent
7ecb39d3ad
commit
ebf6f0b949
|
@ -2316,7 +2316,7 @@ cdef class Loop:
|
||||||
local_addr)) from ctx
|
local_addr)) from ctx
|
||||||
|
|
||||||
if rads is not None:
|
if rads is not None:
|
||||||
rai = (<AddrInfo>lads).data
|
rai = (<AddrInfo>rads).data
|
||||||
sock = udp._get_socket()
|
sock = udp._get_socket()
|
||||||
while rai is not NULL:
|
while rai is not NULL:
|
||||||
if rai.ai_family != lai.ai_family:
|
if rai.ai_family != lai.ai_family:
|
||||||
|
|
Loading…
Reference in New Issue