Module: Rex::Socket::Proxies
- Defined in:
- lib/rex/socket/proxies.rb
Defined Under Namespace
Modules: ProxyType
Class Method Summary collapse
-
.parse(value) ⇒ Array
The array of proxies, i.e.
- .supported_types ⇒ Object
Class Method Details
.parse(value) ⇒ Array
Returns The array of proxies, i.e. ‘host’, ‘port’]].
15 16 17 |
# File 'lib/rex/socket/proxies.rb', line 15 def self.parse(value) value.to_s.strip.split(',').map { |a| a.strip }.map { |a| a.split(':').map { |b| b.strip } } end |