def TrafficShaper(self, **kwargs): return trafficshaper.TrafficShaper(host=self.host, ports=(self.dns_port, ), **kwargs)
def TrafficShaper(self, **kwargs): return trafficshaper.TrafficShaper( host=self.host, port=self.port, dns_port=None, **kwargs)