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:
parent
2d9145cd73
commit
6172129f6f
@ -44,7 +44,7 @@ struct tmate_settings *tmate_settings = &_tmate_settings;
|
|||||||
|
|
||||||
static void usage(void)
|
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)
|
void tmate_get_random_bytes(void *buffer, ssize_t len)
|
||||||
@ -76,7 +76,7 @@ int main(int argc, char **argv, char **envp)
|
|||||||
{
|
{
|
||||||
int opt;
|
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) {
|
switch (opt) {
|
||||||
case 'p':
|
case 'p':
|
||||||
tmate_settings->ssh_port = atoi(optarg);
|
tmate_settings->ssh_port = atoi(optarg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user