allow localhost redirects with config value

fixes #144 
I don't know anything about anything, but would this match on something like "localhost.foobar.com"? Is that a problem, or not really since `localRedirects` would need to be enabled as well.