Skip to content

Commit

Permalink
add DirectRegionFilter() to GAEProxyHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Apr 7, 2014
1 parent 55aea0b commit 9d68aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ def filter(self, handler):
if handler.command == 'CONNECT':
return [handler.FORWARD, handler.host, handler.port, handler.max_timeout]
else:
return [handler.DIRECT]
return [handler.DIRECT, {}]


class AutoRangeFilter(BaseProxyHandlerFilter):
Expand Down Expand Up @@ -1892,7 +1892,7 @@ def filter(self, handler):

class GAEProxyHandler(AdvancedProxyHandler):
"""GAE Proxy Handler 2"""
handler_filters = [WithGAEFilter(), FakeHttpsFilter(), ForceHttpsFilter(), HostsFilter(), AutoRangeFilter(), GAEFetchFilter()]
handler_filters = [WithGAEFilter(), FakeHttpsFilter(), ForceHttpsFilter(), HostsFilter(), DirectRegionFilter(), AutoRangeFilter(), GAEFetchFilter()]

def first_run(self):
"""GAEProxyHandler setup, init domain/iplist map"""
Expand Down

0 comments on commit 9d68aa1

Please sign in to comment.