shithub: riscv

Download patch

ref: 9d0ba6f162f01253edaa4b8602f620b1869a71ca
parent: 12f27944a5d3fb160964b8c9e0efbd146408aa5a
author: cinap_lenrek <[email protected]>
date: Tue Jan 16 18:27:23 EST 2018

ip/ipconfig: use 2000::/3 instead of ::/0 for v6 default route

the ::/0 route has the bad side effect of breaking v4 connections
when theres no default route due to v6 mapped v4 addresses. this
might be temporary measure.

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -728,7 +728,7 @@
 	if(isv4(gaddr))
 		fprint(cfd, "add 0 0 %I", gaddr);
 	else
-		fprint(cfd, "add :: /0 %I", gaddr);
+		fprint(cfd, "add 2000:: /3 %I", gaddr);
 	close(cfd);
 }