[NetworkManager-fortisslvpn] contrib/fortiserve: change --local to --listen
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-fortisslvpn] contrib/fortiserve: change --local to --listen
- Date: Tue, 16 Apr 2019 12:32:31 +0000 (UTC)
commit d2a6f2a3303a08d21127ec8896e81562bde8d4ea
Author: emelenas <emelenas gmail com>
Date: Mon Apr 1 20:49:43 2019 +0000
contrib/fortiserve: change --local to --listen
There is a mismatch between the documentation and the code. Option --listen is
not recognized but --local is. I changed all occurrences of local to listen to
match the documentation and because it seems more clear to me.
https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/merge_requests/8
contrib/fortiserve.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/contrib/fortiserve.pl b/contrib/fortiserve.pl
index 7fd1168..ed28c4b 100755
--- a/contrib/fortiserve.pl
+++ b/contrib/fortiserve.pl
@@ -46,7 +46,7 @@ use Pod::Usage;
use strict;
use warnings;
-my $local = '0.0.0.0:10443';
+my $listen = '0.0.0.0:10443';
my $cert = 'server.crt';
my $key = 'server.key';
my $pppd = 'pppd';
@@ -363,7 +363,7 @@ Ask for a One-Time-Password.
=cut
new Getopt::Long::Parser (config => ['no_ignore_case'])->getoptions (
- 'local=s' => \$local,
+ 'listen=s' => \$listen,
'cert=s' => \$cert,
'key=s' => \$key,
'pppd=s' => \$pppd,
@@ -373,7 +373,7 @@ new Getopt::Long::Parser (config => ['no_ignore_case'])->getoptions (
) or pod2usage (2);
my $server = new HTTP::Daemon::SSL (
- LocalAddr => $local,
+ LocalAddr => $listen,
SSL_cert_file => $cert,
SSL_key_file => $key,
ReuseAddr => 1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]