Closed liudangyi closed 7 years ago
Good catch! Thank you for this fix. 👍
About your nsenter
question: I think that almost all systems ship with ip
, but they don't all ship with nsenter
... Therefore, I prefer to stick with ip
. But you have a very good point.
Thanks again for your PR!
By the way, would it be better to use
nsenter -un
instead ofip netns exec
?nsenter -un
will enter both network namespace and UTS namespace, whileip netns exec
only enter network namespace.