dns: scheme ignored when creating SURT

Description

When creating a SURT from an URI with the SURT class it will return the original URI in case of URIs starting with dns:

This causes some of the decideRules to fail on DNS requests (as they compare a URI in SURT format to normal formatted URI)

A fix would be to add dns: to the URI_SPLITTER regex, let it start with "(
w+://|dns instead of only "(
w+://)

I don't know if this would break anything that relies on DNS calls not being able to convert to SURTs

Environment

None

Status

Assignee

Unassigned

Reporter

Eric de Boer

Labels

None

Group Assignee

None

ZendeskID

None

Estimated Difficulty

None

Actual Difficulty

None

Affects versions

Heritrix 3.1.1

Priority

Major
Configure