1
0
Fork 0

Use tun interface name from config

master
Alex Kotov 3 years ago
parent affb9cded5
commit 68e654d006
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
  1. 6
      main.py

@ -79,11 +79,11 @@ def main():
with open(config_filename) as config_file:
config = Config(json.load(config_file))
tun_iface = pytun.TunTapDevice()
print('TUN interface addr: ', config.iface_addr)
print('TUN interface dest addr:', config.iface_dstaddr)
print('TUN interface name: ', tun_iface.name)
print('TUN interface name: ', config.iface_name)
tun_iface = pytun.TunTapDevice(name=config.iface_name)
tun_iface.addr = str(config.iface_addr)
tun_iface.dstaddr = str(config.iface_dstaddr)