aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar John Hood <cgull@glup.org>2015-07-26 23:50:00 -0400
committerGravatar John Hood <cgull@glup.org>2016-03-30 23:52:19 -0400
commit9dbf3b366dcc8c3240bd9aac6a6792c809128360 (patch)
tree75c6c6654ed6d1d4730262d1e305a61aea1174d3 /scripts
parent389fc232051087f2430e9e7b05f770a38069cb39 (diff)
mosh.pl: use single quotes where appropriate
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mosh.pl7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl
index bda624f..1cbaaf4 100755
--- a/scripts/mosh.pl
+++ b/scripts/mosh.pl
@@ -200,7 +200,6 @@ if ( ! defined $fake_proxy ) {
push @bind_arguments, ('-i', "$bind_ip");
} else {
print STDERR qq{$0: Unknown server binding option: $bind_ip\n};
-
die $usage;
}
} else {
@@ -251,7 +250,7 @@ if ( ! defined $fake_proxy ) {
# If v4 or v6 was specified, reduce the host list.
if ( defined( $af )) {
@res = grep {$_->{family} == $af} @res;
- } elsif ( $family ne "all" ) {
+ } elsif ( $family ne 'all' ) {
# If v4/v6/all were not specified, verify that this host only has one address family available.
for my $ai ( @res ) {
if ( !defined( $af )) {
@@ -274,8 +273,8 @@ if ( ! defined $fake_proxy ) {
Family => $ai->{family},
PeerHost => $addr_string,
PeerPort => $port,
- Proto => "tcp" )) {
- print STDERR "MOSH IP ", $sock->peerhost, "\n";
+ Proto => 'tcp' )) {
+ print STDERR 'MOSH IP ', $sock->peerhost, "\n";
last;
} else {
$err = $@;