Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
agent
Commits
c8560bb3
Commit
c8560bb3
authored
Mar 25, 2018
by
Federico Sismondi
Browse files
patch for old bug on tun creation for linux OS
parent
5497a10c
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/opentun.py
View file @
c8560bb3
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment