Actually use provided devname

Bug found / patch proposed by Kai
This commit is contained in:
Sebastian Lohff 2016-07-22 17:17:36 +02:00
parent bf8164c695
commit 57627a3637
1 changed files with 1 additions and 1 deletions

View File

@ -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