diff --git a/lib/anemone/http.rb b/lib/anemone/http.rb index 3e6a298f..cb7a5530 100644 --- a/lib/anemone/http.rb +++ b/lib/anemone/http.rb @@ -180,7 +180,7 @@ def verbose? # Allowed to connect to the requested url? # def allowed?(to_url, from_url) - to_url.host.nil? || (to_url.host == from_url.host) + to_url.host.nil? || (to_url.host.sub(/^www\./, '') == from_url.host.sub(/^www\./, '')) end end