Commit c8560bb3 authored by Federico Sismondi's avatar Federico Sismondi

patch for old bug on tun creation for linux OS

parent 5497a10c
......@@ -447,6 +447,9 @@ class OpenTunLinux(object):
# ipv6_prefixStr = formatIPv6Addr(self.ipv6_prefix)
# ipv6_hostStr = formatIPv6Addr(self.ipv6_host)
# delete any : character in the host string (old API used to define those with that char)
self.ipv6_host = self.ipv6_host.replace(":", "")
v = os.system('ip tuntap add dev ' + self.ifname + ' mode tun user root')
v = os.system('ip link set ' + self.ifname + ' up')
v = os.system('ip -6 addr add ' + self.ipv6_prefix + ':' + self.ipv6_host + '/64 dev ' + self.ifname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment