1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

added back hostname param

This commit is contained in:
Nicolas Viennot 2015-11-13 16:53:30 -05:00
parent 2d9145cd73
commit 6172129f6f

View File

@ -44,7 +44,7 @@ struct tmate_settings *tmate_settings = &_tmate_settings;
static void usage(void)
{
fprintf(stderr, "usage: tmate-slave [-k keys_dir] [-p port] [-x proxy_hostname] [-q proxy_port] [-s] [-v]\n");
fprintf(stderr, "usage: tmate-slave [-h hostname] [-k keys_dir] [-p port] [-x proxy_hostname] [-q proxy_port] [-s] [-v]\n");
}
void tmate_get_random_bytes(void *buffer, ssize_t len)
@ -76,7 +76,7 @@ int main(int argc, char **argv, char **envp)
{
int opt;
while ((opt = getopt(argc, argv, "k:p:lvx:q:")) != -1) {
while ((opt = getopt(argc, argv, "h:k:p:lvx:q:")) != -1) {
switch (opt) {
case 'p':
tmate_settings->ssh_port = atoi(optarg);