diff options
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 9d46cd7..98b4a65 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1428,7 +1428,15 @@ EOD; set link no acfcomp protocomp set link disable pap chap set link accept chap - set link mtu 1492 + +EOD; + if (empty($wancfg['mtu'])) + $mpdmtu = "1492"; + else + $mpdmtu = "{$wancfg['mtu']}"; + + $mpdconf .= <<<EOD + set link mtu {$mpdmtu} set ipcp yes vjcomp set ipcp ranges 0.0.0.0/0 0.0.0.0/0 |