Revision 3d06e8f0
Added by Pierre POMES over 15 years ago
etc/inc/openvpn.inc | ||
---|---|---|
302 | 302 |
if (!$interface) |
303 | 303 |
$interface = 'WAN'; |
304 | 304 |
|
305 |
$iface = convert_friendly_interface_to_real_interface_name($interface); |
|
305 |
/* For a carp interface, the name is well known:vip1, vip2, ...*/ |
|
306 |
if (!strncmp($interface, "vip", 3)) { |
|
307 |
$iface=$interface; |
|
308 |
} else { |
|
309 |
$iface=convert_friendly_interface_to_real_interface_name($interface); |
|
310 |
} |
|
311 |
|
|
306 | 312 |
$lines = explode(' ', trim(shell_exec("ifconfig {$iface} | grep inet | grep -v inet6"))); |
307 | 313 |
$iface_ip = $lines[1]; |
308 | 314 |
|
Also available in: Unified diff
Add carp support for OpenVPN. Ticket #69