manpage oddity
hi,
the openvpn man page section on environment variables lists
local The --local parameter. Set on program initiation and
reset on SIGHUP.
local_port
The local port number, specified by --port or --lport.
Set on program initiation and reset on SIGHUP.
and a few others. However, the actual name of these env vars is local_N, local_port_N etc. I've checked the code and that has been the case since v2.1
Two questions:
- why are we adding the number? per connection there will be only one local IP and only one local port
- should we update the man page to reflect this?
TIA,
JJK
Hi,
Quoted 7 lines · Jan Just Keijser
and a few others. However, the actual name of these env vars is
local_N,local_port_Netc. I've checked the code and that has been the case since v2.1Two questions:
- why are we adding the number? per connection there will be only one local IP and only one local port
If it was there at v2.1 - "you tell us, you're the only one that has been around back then" :-)
(Most likely it's just using the same function for "stick a number to it and build an environment string containing an IP address" that is used for route_1, route_2, ...)
Quoted 1 line
- should we update the man page to reflect this?
Actually, I'd go for "update the manpage, and keep the number" - Heiko is working on multi-listen, so we could end up with multiple local IPs and ports one day, and then it makes sense to have them numbered local_1, local_2, etc.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...