ref: 183ab18dfcb048318241b92510a3f6614fa62ca4
parent: b591ee195b71eb3be9963e544c3fea72c017a09a
author: cinap_lenrek <[email protected]>
date: Sun Sep 9 11:35:14 EDT 2018
libip: ignore ipv6 link local addresses for myipaddr()
--- a/sys/src/libip/myipaddr.c
+++ b/sys/src/libip/myipaddr.c
@@ -46,6 +46,10 @@
maskip(lifc->ip, loopbackmask, mynet);
if(ipcmp(mynet, loopbacknet) == 0)
continue;
+
+ /* ipv6 linklocal */
+ if(ISIPV6LINKLOCAL(lifc->ip))
+ continue;
ipmove(ip, lifc->ip);
return 0;