system: annotate problematic code

See: https://forum.opnsense.org/index.php?topic=26296.0
This commit is contained in:
Franco Fichtner 2022-01-11 20:15:23 +01:00
parent 61720fe233
commit 600dc95b58

View File

@ -192,9 +192,11 @@ function dpinger_configure_do($verbose = false, $gwname = null)
* then the ICMP6 response would not find its way back home.
*/
if (is_linklocal($gateway['monitor']) && strpos($gateway['monitor'], '%') === false) {
/* XXX 'if' can be wrong for IPv6 */
$gateway['monitor'] .= "%{$gateway['if']}";
}
if (is_linklocal($gateway['gateway']) && strpos($gateway['gateway'], '%') === false) {
/* XXX 'if' can be wrong for IPv6 */
$gateway['gateway'] .= "%{$gateway['if']}";
}