ip/ipconfig: resolve ipgw to an ip address as neccesary (thanks k0ga)

ndb(6) states that ipgw needs to be an ip address,
however, attempting to resolve ipgw is not difficult
and already done by ip/dhcpd.
This commit is contained in:
cinap_lenrek 2020-04-11 18:09:48 +02:00
parent d8545806fc
commit a7dab2728b

View file

@ -1010,7 +1010,7 @@ ndb2conf(Ndb *db, uchar *myip)
nattr = 0;
attrs[nattr++] = "ipmask";
attrs[nattr++] = "ipgw";
attrs[nattr++] = "@ipgw";
attrs[nattr++] = "@dns";
attrs[nattr++] = "@ntp";