interfaces_ppps_edit.php: WebGUI don't show local ip / gateway ip values
After adding L2TP / PPTP interfaces on Interfaces / PPPs pages
it add Local IP Address and Gateway IP or Hostname to config.xml
but don't show it if you press edit icon of interface
issue on 2.4.4-p3
built on Mon Sep 09 20:57:57 EDT 2019
#2 Updated by Jim Pingle 4 months ago
The way the page is rendered is odd.
- The Local IP address, mask, and gateway are stored in an array indexed by a number (e.g. 0 for the first entry)
- The interfaces are stored as an array indexed by number (e.g. 0 for the first entry)
- The form populates values as if there is one entry for each possible interface, starting with 0
- The form assumes the stored port and IP address info index numbers are the same as the index of the total number of interfaces
So the form only works if you use the first N interfaces, not a later interface. I've got some ideas on a fix.