Revision d5318588
Added by Jim Pingle over 1 year ago
src/etc/inc/ipsec.inc | ||
---|---|---|
2485 | 2485 |
/* Mobile tunnels cannot start automatically */ |
2486 | 2486 |
$start_action = 'none'; |
2487 | 2487 |
} else { |
2488 |
$remote_spec = $ph1ent['remote-gateway']; |
|
2488 |
if (($ph1ent['protocol'] == 'both') && |
|
2489 |
(($ph1ent['remote-gateway'] == '0.0.0.0') || |
|
2490 |
($ph1ent['remote-gateway'] == '::'))) { |
|
2491 |
$remote_spec = '%any'; |
|
2492 |
} else { |
|
2493 |
$remote_spec = $ph1ent['remote-gateway']; |
|
2494 |
} |
|
2489 | 2495 |
$sourcehost = (is_ipaddr($remote_spec)) ? $remote_spec : $rgmap[$remote_spec]; |
2490 | 2496 |
$ifacesuse = ipsec_setup_routes($ph1ent['interface'], $ph1ent['protocol'], $sourcehost, isset($ph1ent['gw_duplicates'])); |
2491 | 2497 |
} |
Also available in: Unified diff
Fix IPsec Dual Stack w/any remote. Fixes #15147