samuelkadolph/ruby-proxifier — pull request #1 by cluesque (2011-10-21 16:16:29+00:00)
Title: Add configurability (and documentation) to environment model

In my environment I want all TCPConnections to go through the proxy if they're bound for the real internet (say, paypal), but not if they're staying inside my firewalled net (memcached, etc.)

This allows that.

Environment variable PROXY_FILTER_LIST is a comma separated list of hosts (or IPs) to not use the proxy with
(e.g. '10.0.0.1,10.0.2.1')

Environment variable PROXY_FILTER_REGEXP is a regular expression, where if the host matches, it connects directly, not through the proxy
(e.g., '(10\..*|localhost)')