mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 07:53:43 +00:00
Add --key option to set key directly (#1207)
This commit is contained in:
@@ -910,6 +910,7 @@ main(int argc, char **argv)
|
||||
{ "mtu", required_argument, NULL, GETOPT_VAL_MTU },
|
||||
{ "plugin", required_argument, NULL, GETOPT_VAL_PLUGIN },
|
||||
{ "plugin-opts", required_argument, NULL, GETOPT_VAL_PLUGIN_OPTS },
|
||||
{ "password", required_argument, NULL, GETOPT_VAL_PASSWORD },
|
||||
{ "help", no_argument, NULL, GETOPT_VAL_HELP },
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
@@ -950,6 +951,7 @@ main(int argc, char **argv)
|
||||
server_host[server_num++] = optarg;
|
||||
}
|
||||
break;
|
||||
case GETOPT_VAL_PASSWORD:
|
||||
case 'k':
|
||||
password = optarg;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user