Repository navigation
feat(net): add option -x to unshare network - #130
Conversation
angelhof
left a comment
There was a problem hiding this comment.
The changes look good to me! Don't we need to also modify manpages and completions?
Oops I forgot about that, they have been pushed. |
angelhof
left a comment
There was a problem hiding this comment.
Looks good to me! Are the failing tests something to worry about?
Likely not! They’re failing due to #128 |
gliargovas
left a comment
There was a problem hiding this comment.
LGTM! Nicely done @ericzty
mgree
left a comment
There was a problem hiding this comment.
Looks great! Just a few small tweaks.
| # Test if network works normally | ||
| "$TRY" curl 1.1 || return 1 | ||
|
|
||
| # Test if ping fails when network is unshared |
There was a problem hiding this comment.
What is curl 1.1 supposed to do? You say ping but run curl. Maybe use ping 8.8.8.8?
There was a problem hiding this comment.
curl 1.1 expands to curl 1.0.0.1, which gets you the frontpage of cloudflare's public dns resolver, ping doesn't work due to #131
mgree
left a comment
There was a problem hiding this comment.
LGTM! (Made two tiny text tweaks.)
This PR adds an option
-xto unshare the network by adding--netto the first unshare invocation.Note: I would use
ping -c1 1.1instead ofcurl 1.1but #131Closes #127