- allow multiple spaces in the environment variable
- documentation fix
This commit is contained in:
parent
31d3fd0209
commit
049078ea55
2 changed files with 5 additions and 5 deletions
|
@ -88,11 +88,11 @@ systems, and is, for instance, used by the lynx browser), or none if
|
||||||
unset. To set a particular proxy server for HTTP download, use one of
|
unset. To set a particular proxy server for HTTP download, use one of
|
||||||
these methods:
|
these methods:
|
||||||
|
|
||||||
- set http_proxy globally: EXPORT http_proxy=http://localhost:3128/
|
- set http_proxy globally: export http_proxy=http://localhost:3128/
|
||||||
- or on the command line: $ http_proxy=http://localhost:3128/ metarproxy
|
- or on the command line: $ http_proxy=http://localhost:3128/ metarproxy
|
||||||
- unset http_proxy: $ http_proxy= metarproxy
|
- unset http_proxy: $ http_proxy= metarproxy
|
||||||
- use the command line option: $ metarproxy --proxy=http://localhost:3128/
|
- use the command line option: $ metarproxy --proxy=http://localhost:3128/
|
||||||
- set the option globally: EXPORT METARPROXY="-yhttp://localhost:3128"
|
- set the option globally: export METARPROXY="-yhttp://localhost:3128"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -277,5 +277,5 @@ stations:
|
||||||
|
|
||||||
|
|
||||||
$Id$
|
$Id$
|
||||||
Melchior FRANZ <mfranz@aon.at>, 2005/1/24
|
Melchior FRANZ <mfranz # aon : at>, 2005/1/24
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
# FlightGear METAR proxy server
|
# FlightGear METAR proxy server
|
||||||
# Melchior FRANZ (c) 2005, <mfranz@aon.at>, GPL V2
|
# Melchior FRANZ (c) 2005, <mfranz # aon : at>, GPL V2
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
# typical use
|
# typical use
|
||||||
|
@ -109,7 +109,7 @@ sub parse_options()
|
||||||
return $ARGV[0];
|
return $ARGV[0];
|
||||||
}
|
}
|
||||||
my $mode = 4;
|
my $mode = 4;
|
||||||
unshift @ARGV, split / /, $ENV{'METARPROXY'} if defined $ENV{'METARPROXY'};
|
unshift @ARGV, split /\s+/, $ENV{'METARPROXY'} if defined $ENV{'METARPROXY'};
|
||||||
while (1) {
|
while (1) {
|
||||||
$_ = $ARGV[0];
|
$_ = $ARGV[0];
|
||||||
defined $_ or last;
|
defined $_ or last;
|
||||||
|
|
Loading…
Reference in a new issue