fixes #6589 - add trusted_hosts check back

instead of registering the extension with each parent class, you can do it directly with the base (probably around https://github.com/theforeman/smart-proxy/blob/develop/lib/smart_proxy.rb#L39):
<pre>
::Sinatra::Base.register ::Sinatra::TrustedHosts
</pre>