(self, enable=True)
enables or disables the iptable rule for forwarding traffic locally
enables or disables the iptable rule for forwarding traffic locally
enables or disables the iptable rule for forwarding traffic locally
def modip_rule(self, enable=True):
        """ enables or disables the iptable rule for forwarding traffic locally
        """
        if enable:
            util.init_app(self.iptable_http.format
                                    (self.config['hooked_host'].value))
        else:
            util.init_app(self.iptable_http.replace('-A', '-D').format
                                            (self.config['hooked_host'].value))
def modip_rule ( self , enable = True ) : if enable : util . init_app ( self . iptable_http . format ( self . config [ 'hooked_host' ] . value ) ) else : util . init_app ( self . iptable_http . replace ( '-A' , '-D' ) . format ( self . config [ 'hooked_host' ] . value ) )