Logo Search packages:      
Sourcecode: ufw version File versions

def src::common::UFWRule::set_dst (   self,
  addr 
)

Sets destination address of rule

Definition at line 240 of file common.py.

00240                            :
        '''Sets destination address of rule'''
        tmp = addr.lower()

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

    def normalize(self):


Generated by  Doxygen 1.6.0   Back to index