Opened 3 years ago

Closed 3 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:


For example:

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

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 3 years ago by Glyph

Resolution: duplicate
Status: newclosed

Duplicate of #8070

Note: See TracTickets for help on using tickets.