bind-server: accept any value to option.
Rather than trying to validate, accept any option to the bind-server option, and allow mosh-server to validate it, as noted by https://github.com/mobile-shell/mosh/pull/670#issuecomment-135147605 Fixes: 669 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
committed by
John Hood
parent
05fe24d50d
commit
274b5a4d14
+1
-4
@@ -221,11 +221,8 @@ if ( ! defined $fake_proxy ) {
|
||||
}
|
||||
} elsif ( $bind_ip =~ m{^any$}i ) {
|
||||
# do nothing
|
||||
} elsif ( $bind_ip =~ m{^[0-9\.]+$} ) {
|
||||
push @bind_arguments, ('-i', "$bind_ip");
|
||||
} else {
|
||||
print STDERR qq{$0: Unknown server binding option: $bind_ip\n};
|
||||
die $usage;
|
||||
push @bind_arguments, ('-i', "$bind_ip");
|
||||
}
|
||||
} else {
|
||||
my ( $host, $port ) = @ARGV;
|
||||
|
||||
Reference in New Issue
Block a user