mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
interfaces: flush IPv6 addresses on PPP interfaces #4929
This commit is contained in:
parent
b563c28be7
commit
f7d7fd6362
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
|
||||
|
||||
IF="${1}"
|
||||
AF="${2}"
|
||||
IP="${3}"
|
||||
@ -52,6 +54,14 @@ elif [ "${AF}" = "inet6" ]; then
|
||||
|
||||
# Do not remove gateway used during filter reload.
|
||||
rm -f /tmp/${IF}_routerv6 /tmp/${IF}upv6 /tmp/${IF}_ipv6
|
||||
|
||||
# flush stale IPv6 addresses since mpd5 will not do it
|
||||
php << EOF
|
||||
<?
|
||||
require_once 'util.inc';
|
||||
require_once 'interfaces.inc';
|
||||
interfaces_addresses_flush('${IF}', 6);
|
||||
EOF
|
||||
fi
|
||||
|
||||
daemon -f /usr/local/opnsense/service/configd_ctl.py dns reload
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user