git: 9front

Download patch

ref: 2e065bfbf5381d938635c352ccc3e292bfab8243
parent: 21db28440986b5407555222427922d38adc90bee
author: cinap_lenrek <cinap_lenrek@felloff.net>
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";
--