Logo Search packages:      
Sourcecode: ufw version File versions

def src::common::UFWRule::set_src (   self,

Sets source address of rule

Definition at line 230 of file common.py.

00230                            :
        '''Sets source address of rule'''
        tmp = addr.lower()

        if tmp != "any" and not ufw.util.valid_address(tmp, "any"):
            err_msg = _("Bad source address")
            raise UFWError(err_msg)
        self.src = tmp

    def set_dst(self, addr):

Generated by  Doxygen 1.6.0   Back to index