mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:53:09 +02:00
Better fix for IPv6 binding to localhost
This commit is contained in:
parent
41541a4385
commit
660bff01da
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ def set(data, rpos, wpos, state):
|
|||
def test_ssl(self):
|
||||
'Test serving over SSL'
|
||||
s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0)
|
||||
s.bind(('localhost', 1338 if is_travis else 0))
|
||||
s.bind(('::1', 0))
|
||||
address = s.getsockname()[0]
|
||||
with TemporaryDirectory('srv-test-ssl') as tdir:
|
||||
cert_file, key_file, ca_file = map(lambda x:os.path.join(tdir, x), 'cka')
|
||||
|
|
|
|||
Loading…
Reference in a new issue