diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-26 14:06:00 -0700 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2016-06-09 00:31:49 -0400 |
commit | 274b5a4d14be284bf51c6b4cac07336e905699ad (patch) | |
tree | dbd11a5a7075255326a17d45f54d2dc24a44a27f /scripts | |
parent | 05fe24d50ddbabf1c87be748b7397907ae1b9654 (diff) |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mosh.pl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl index 07f8f26..acb8234 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -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; |