summaryrefslogtreecommitdiff
path: root/pysnmp/carrier/twisted/dgram/udp.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/carrier/twisted/dgram/udp.py')
-rw-r--r--pysnmp/carrier/twisted/dgram/udp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pysnmp/carrier/twisted/dgram/udp.py b/pysnmp/carrier/twisted/dgram/udp.py
index d90d93b..82e2d2b 100644
--- a/pysnmp/carrier/twisted/dgram/udp.py
+++ b/pysnmp/carrier/twisted/dgram/udp.py
@@ -14,14 +14,16 @@ class UdpTwistedTransport(DgramTwistedTransport):
# AbstractTwistedTransport API
- def openClientMode(self, iface=('', 0)):
+ def openClientMode(self, iface=None):
+ if iface is None:
+ iface = ('', 0)
try:
self._lport = reactor.listenUDP(iface[1], self, iface[0])
except Exception:
raise error.CarrierError(sys.exc_info()[1])
return self
- def openServerMode(self, iface=('', 161)):
+ def openServerMode(self, iface):
try:
self._lport = reactor.listenUDP(iface[1], self, iface[0])
except Exception: