shithub: riscv

Download patch

ref: a7dab2728bde8eea68ddfdfadfad08a00b1f7c68
parent: d8545806fc28ac45da1d2896c6ffac7075095301
author: cinap_lenrek <[email protected]>
date: Sat Apr 11 14:09:48 EDT 2020

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.

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -1010,7 +1010,7 @@
 
 	nattr = 0;
 	attrs[nattr++] = "ipmask";
-	attrs[nattr++] = "ipgw";
+	attrs[nattr++] = "@ipgw";
 
 	attrs[nattr++] = "@dns";
 	attrs[nattr++] = "@ntp";