Revision c822154c
Added by Jim Pingle over 12 years ago
etc/inc/gwlb.inc | ||
---|---|---|
522 | 522 |
$ctype = strtoupper($ifcfg['ipaddr']); |
523 | 523 |
break; |
524 | 524 |
default: |
525 |
if (substr($ifcfg['if'], 0, 5) == "ovpnc")
|
|
525 |
if (substr($ifcfg['if'], 0, 4) == "ovpn")
|
|
526 | 526 |
$ctype = "VPNv4"; |
527 | 527 |
break; |
528 | 528 |
} |
... | ... | |
588 | 588 |
$ctype = strtoupper($ifcfg['ipaddrv6']); |
589 | 589 |
break; |
590 | 590 |
default: |
591 |
if (substr($ifcfg['if'], 0, 5) == "ovpnc")
|
|
591 |
if (substr($ifcfg['if'], 0, 4) == "ovpn")
|
|
592 | 592 |
$ctype = "VPNv6"; |
593 | 593 |
break; |
594 | 594 |
} |
etc/inc/interfaces.inc | ||
---|---|---|
4287 | 4287 |
$ints[$ifdescr] = $ifdescr; |
4288 | 4288 |
break; |
4289 | 4289 |
default: |
4290 |
if (substr($ifname['if'], 0, 5) == "ovpnc" ||
|
|
4290 |
if (substr($ifname['if'], 0, 4) == "ovpn" ||
|
|
4291 | 4291 |
!empty($ifname['gateway'])) |
4292 | 4292 |
$ints[$ifdescr] = $ifdescr; |
4293 | 4293 |
break; |
... | ... | |
4311 | 4311 |
return true; |
4312 | 4312 |
break; |
4313 | 4313 |
default: |
4314 |
if (substr($ifname['if'], 0, 5) == "ovpnc")
|
|
4314 |
if (substr($ifname['if'], 0, 4) == "ovpn")
|
|
4315 | 4315 |
return true; |
4316 | 4316 |
if (!empty($ifname['gateway'])) |
4317 | 4317 |
return true; |
... | ... | |
4340 | 4340 |
return true; |
4341 | 4341 |
break; |
4342 | 4342 |
default: |
4343 |
if (substr($ifname['if'], 0, 5) == "ovpnc")
|
|
4343 |
if (substr($ifname['if'], 0, 4) == "ovpn")
|
|
4344 | 4344 |
return true; |
4345 | 4345 |
if (!empty($ifname['gatewayv6'])) |
4346 | 4346 |
return true; |
Also available in: Unified diff
Make gateways for assigned OpenVPN servers as well as clients.