Fixes #8514 - Add support for requests to smart proxy discovery plugin

nitpick: self is not needed and you can also write
```ruby
if subnet.try(:discovery_id)
```