diff --git a/local/ProxyHandler.py b/local/ProxyHandler.py index 1a1fd86..f370da5 100644 --- a/local/ProxyHandler.py +++ b/local/ProxyHandler.py @@ -1393,7 +1393,9 @@ def _set_temp_FAKECERT(self): self.badhost[host] = 1 def go_TEMPACT(self): - if GC.LISTEN_ACT == 'GAE' and self.command not in self.gae_fetcmds: + if GC.LISTEN_ACT == 'GAE' and (self.command not in self.gae_fetcmds or not GC.GAE_APPIDS): + return self.go_BAD() + elif GC.LISTEN_ACT == "CFW" and not (GC.CFW_SUBDOMAIN and GC.CFW_WORKERS or GC.CFW_WORKER): return self.go_BAD() self._set_temp_ACT() self.action = GC.LISTEN_ACTNAME @@ -1405,6 +1407,10 @@ def go_FAKECERT(self): self.do_action() def go_FAKECERT_TEMPACT(self): + if GC.LISTEN_ACT == 'GAE' and (self.command not in self.gae_fetcmds or not GC.GAE_APPIDS): + return self.go_BAD() + elif GC.LISTEN_ACT == "CFW" and not (GC.CFW_SUBDOMAIN and GC.CFW_WORKERS or GC.CFW_WORKER): + return self.go_BAD() self.path = '/' self._set_temp_ACT() self._set_temp_ACT()