mirror of https://github.com/MagicStack/uvloop.git
Fix loop.create_server to accept a list of hosts
This commit is contained in:
parent
43d5238c12
commit
080180fb98
|
@ -45,7 +45,7 @@ class _TestTCP:
|
||||||
try:
|
try:
|
||||||
srv = await asyncio.start_server(
|
srv = await asyncio.start_server(
|
||||||
handle_client,
|
handle_client,
|
||||||
'127.0.0.1', 0,
|
('127.0.0.1', 'localhost'), 0,
|
||||||
family=socket.AF_INET,
|
family=socket.AF_INET,
|
||||||
loop=self.loop)
|
loop=self.loop)
|
||||||
|
|
||||||
|
|
|
@ -779,7 +779,7 @@ cdef class Loop:
|
||||||
return self._getaddrinfo(host, port, family, type, proto, flags, 1)
|
return self._getaddrinfo(host, port, family, type, proto, flags, 1)
|
||||||
|
|
||||||
@aio_coroutine
|
@aio_coroutine
|
||||||
async def create_server(self, protocol_factory, str host, int port,
|
async def create_server(self, protocol_factory, host, int port,
|
||||||
*,
|
*,
|
||||||
int family=uv.AF_UNSPEC,
|
int family=uv.AF_UNSPEC,
|
||||||
int flags=uv.AI_PASSIVE,
|
int flags=uv.AI_PASSIVE,
|
||||||
|
|
Loading…
Reference in New Issue