ip/ppp: rc-quote ipnet value, to prevent accidents.

This commit is contained in:
cinap_lenrek 2024-10-28 22:50:49 +00:00
parent 6894c4e13a
commit d248f8e847

View file

@ -1597,7 +1597,7 @@ ipconfig(int shell, char *net, char *dev, char *ipnet, int mtu, int proxy, Ipadd
if(gate != nil)
fprint(shell, "-g %I ", gate);
if(ipnet != nil)
fprint(shell, "-i %s ", ipnet);
fprint(shell, "-i %q ", ipnet);
}
/* allow dhcpv6 */
if(duid != nil)