mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
shadowsocks-libev: ss-rules: rename usage func
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
ss_usage() {
|
ss_rules_usage() {
|
||||||
cat >&2 <<EOF
|
cat >&2 <<EOF
|
||||||
Usage: ss-rules [options]
|
Usage: ss-rules [options]
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ __errmsg() {
|
|||||||
ss_rules_parse_args() {
|
ss_rules_parse_args() {
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help) ss_usage; exit 0;;
|
-h|--help) ss_rules_usage; exit 0;;
|
||||||
-f|--flush) ss_rules_flush; exit 0;;
|
-f|--flush) ss_rules_flush; exit 0;;
|
||||||
-l) o_redir_tcp_port="$2"; shift 2;;
|
-l) o_redir_tcp_port="$2"; shift 2;;
|
||||||
-L) o_redir_udp_port="$2"; shift 2;;
|
-L) o_redir_udp_port="$2"; shift 2;;
|
||||||
|
|||||||
Reference in New Issue
Block a user