From 274b5a4d14be284bf51c6b4cac07336e905699ad Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 26 Aug 2015 14:06:00 -0700 Subject: [PATCH] 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 --- scripts/mosh.pl | 5 +---- 1 file changed, 1 insertion(+), 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;