mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
web: Change ip, netmask and gw network settings at the same time
This commit is contained in:
1 parent
c5ce24ff78
commit
07ab04e668
1 file changed
+1
-1
+1
-1
@@ -1766,7 +1766,7 @@ $("sy-apply").addEventListener("click",function(){
|
||||
if(!/^[\x21-\x7e]{1,23}$/.test(hn)||/["\\]/.test(hn)){toast(t("sy_host_err"),"err");return;}
|
||||
cmds.push("hostname "+hn);
|
||||
}
|
||||
cmds.push("ip "+ip,"netmask "+mask,"gw "+gw);
|
||||
cmds.push("ip "+ip+"\nnetmask "+mask+"\ngw "+gw);
|
||||
var changingIp=ip!==S.info.ip_address;
|
||||
confirmModal(t("sy_net_q"),changingIp?t("sy_net_d",{ip:ip}):"",function(){
|
||||
postCmds(cmds).then(function(){
|
||||
|
||||
Reference in new issue
Block a user