(self, enable=True)
Send hooked TCP traffic to the libmproxy listener
Send hooked TCP traffic to the libmproxy listener
Send hooked TCP traffic to the libmproxy listener
def modip_rule(self, enable=True):
        """ Send hooked TCP traffic to the libmproxy listener
        """
        if enable:
            util.init_app(self.iptable_rule.format
                        (self.config['target'].value))
        else:
            util.init_app(self.iptable_rule.replace('-A', '-D').format
                        (self.config['target'].value))
def modip_rule ( self , enable = True ) : if enable : util . init_app ( self . iptable_rule . format ( self . config [ 'target' ] . value ) ) else : util . init_app ( self . iptable_rule . replace ( '-A' , '-D' ) . format ( self . config [ 'target' ] . value ) )