Merge pull request #3514 from Security-Onion-Solutions/fix/accept-hostname-proxy

[fix] Also accept a hostname in the proxy URL
This commit is contained in:
Mike Reeves
2021-03-17 17:51:59 -04:00
committed by GitHub

View File

@@ -412,7 +412,7 @@ valid_proxy() {
mapfile -t url_arr <<< "$(echo "$proxy" | tr ":" "\n")"
local valid_url=true
if ! valid_ip4 "${url_arr[0]}" && ! valid_fqdn "${url_arr[0]}"; then
if ! valid_ip4 "${url_arr[0]}" && ! valid_fqdn "${url_arr[0]}" && ! valid_hostname "${url_arr[0]}"; then
valid_url=false
fi