Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
传
传输层实验之五: TCP连接器实现
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
计算机网络-协议实现
传输层实验之五
传输层实验之五: TCP连接器实现
Commits
a874c994
Commit
a874c994
authored
Dec 01, 2021
by
张三
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace tun.sh
parent
e8ad8c31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
tun.sh
tun.sh
+1
-4
No files found.
tun.sh
View file @
a874c994
...
...
@@ -53,10 +53,7 @@ check_tun () {
}
check_sudo
()
{
if
[
"
$SUDO_USER
"
=
"root"
]
;
then
echo
"please execute this script as a regular user, not as root"
exit
1
fi
if
[
-z
"
$SUDO_USER
"
]
;
then
# if the user didn't call us with sudo, re-execute
exec sudo
$0
"
$MODE
"
"
$@
"
...
...
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