Opened 2 years ago

Closed 2 years ago

#8071 defect closed duplicate (duplicate)

twisted.web.client.URL improperly hands off square brackets to 'host' field when using IPv6 literals

Reported by: Glyph Owned by:
Priority: normal Milestone:
Component: web Keywords:
Cc: Branch:
Author:

Description

For example:

>>> URI.fromBytes(b'https://[::1]/').host
'[::1]'

This is a problem because the .host attribute is what gets handed off to e.g. connectTCP, which means it does hostname resolution.

See also #8069.

Change History (1)

comment:1 Changed 2 years ago by Glyph

Resolution: duplicate
Status: newclosed

Duplicate of #8070

Note: See TracTickets for help on using tickets.