Browse Source

Actually use provided devname

Bug found / patch proposed by Kai
Sebastian Lohff 3 years ago
parent
commit
57627a3637
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pytap.py

+ 1
- 1
pytap.py View File

@@ -26,7 +26,7 @@ class TapDevice:
26 26
 		"""
27 27
 		self._mode = (tap and self.IFF_TAP) or self.IFF_TUN
28 28
 		self._fd = None
29
-		self._name = None
29
+		self._nametpl = name
30 30
 		self._tap = tap
31 31
 		self._mac = None
32 32
 		self._mtu = 1500

Loading…
Cancel
Save