ColinTaylor
Part of the Furniture
RT-AX86U 386.5_2
The nvram variable
On the FTP GUI page the input field has an input length of two characters and is validated as 1 to 99.
On the Samba GUI page the input field appears in two different parts of the code. In the first position it has an input length of only 1 character, even though it might be set as (and display as) 99. There is conflicting code in
So it looks like code was added to the Samba page to support 1 to 99 but the existing code for 1 to 9 wasn't removed. (I can't think why new code was added rather than just changing the existing code.)
The nvram variable
st_max_user
is shared between Samba's max connections
and vsftpd's max_clients
.On the FTP GUI page the input field has an input length of two characters and is validated as 1 to 99.
On the Samba GUI page the input field appears in two different parts of the code. In the first position it has an input length of only 1 character, even though it might be set as (and display as) 99. There is conflicting code in
function validForm()
where st_max_user
is checked at the beginning as being between 1 and 9, and then the code repeats at the end with a check between 1 and 99.So it looks like code was added to the Samba page to support 1 to 99 but the existing code for 1 to 9 wasn't removed. (I can't think why new code was added rather than just changing the existing code.)
Last edited: