Actually use provided devname
Bug found / patch proposed by Kai
This commit is contained in:
parent
bf8164c695
commit
57627a3637
2
pytap.py
2
pytap.py
|
@ -26,7 +26,7 @@ class TapDevice:
|
||||||
"""
|
"""
|
||||||
self._mode = (tap and self.IFF_TAP) or self.IFF_TUN
|
self._mode = (tap and self.IFF_TAP) or self.IFF_TUN
|
||||||
self._fd = None
|
self._fd = None
|
||||||
self._name = None
|
self._nametpl = name
|
||||||
self._tap = tap
|
self._tap = tap
|
||||||
self._mac = None
|
self._mac = None
|
||||||
self._mtu = 1500
|
self._mtu = 1500
|
||||||
|
|
Loading…
Reference in New Issue