Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofwy committed Feb 14, 2016
1 parent 9ffa7ad commit a760e2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions ssadmin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ start_ss () {
fi
if [ -e $SSSERVER_PID ]; then
if check_ssserver; then
echo 'sserver has started!'
echo 'ssserver has started!'
return 1
else
rm $SSSERVER_PID
Expand Down Expand Up @@ -128,7 +128,7 @@ start_ss () {
run_ssserver
sleep 1
if check_ssserver; then
echo 'ssserver has'
echo 'ssserver has started'
else
echo 'ssserver failed to start'
return 1
Expand Down Expand Up @@ -220,7 +220,7 @@ add_user () {
TLIMIT=`bytes2gb $TLIMIT`
if [ ! -e $USER_FILE ]; then
echo "\
# Split by \t and space
# Split by \t or space
# port password limitation
# 2345 abcde 1000000" > $USER_FILE;
fi
Expand Down Expand Up @@ -600,13 +600,13 @@ case $1 in
;;
esac
if [ "$EUID" -ne 0 ]; then
echo "Permission denied!"
echo "Permission denied! Must run as root!"
exit 1;
fi
if type $SSSERVER 2>&1 >/dev/null; then
:
else
echo "Command ssserver not found, please set the path to ssserver in sslib.sh"
echo "Command ssserver not found, please set the path of ssserver in sslib.sh"
exit 1;
fi
case $1 in
Expand Down
7 changes: 4 additions & 3 deletions sshelp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
usage:ssadmin.sh [option] [port] [passwd] [limit]
- port:port number, 0 < port <= 65535
- passwd:password, can not have spaces, quotes, and other characters
- passwd:password, can not have spaces, quotes, and possibly other special characters
- limit:traffic limitation,(support K/M/G/T or KB/MB/GB/TB)
example: ssadmin.sh add 3333 abcde 10.5G
Options and arguments:
Expand All @@ -11,7 +11,7 @@ start : start ss service
stop : stop ss service
status : show ss service status
restart : restart service
soft_restart: restart service without affecting the existing ss service
soft_restart: restart service without affecting the existing ss connections

add [port] [passwd] [limit]: add user
change [port] [passwd] [limit]: change the user info
Expand All @@ -33,4 +33,5 @@ reset_all_used : set the traffic already used of all users as 0
rlim [port] : set the traffic limitation of the user who is using the port as 0
reset_all_limit: set the traffic limitation of all users as 0

lrules: show iptables rules has been added
lrules: show iptables rules has been added

0 comments on commit a760e2f

Please sign in to comment.