Always send network information, our IP may be changed.

Sun, 10 Jul 2022 16:58:40 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 10 Jul 2022 16:58:40 +0200
changeset 616
e2b82881c13e
parent 615
33a5b63e86d7
child 617
b216f9d4b917

Always send network information, our IP may be changed.

thermferm/mqtt.c file | annotate | diff | comparison | revisions
--- a/thermferm/mqtt.c	Sun Jul 10 15:03:26 2022 +0200
+++ b/thermferm/mqtt.c	Sun Jul 10 16:58:40 2022 +0200
@@ -1478,7 +1478,7 @@
     struct ifaddrs	*ifaddr, *ifa;
     int			family, s;
 
-    if (birth && (f = fopen("/proc/net/route" , "r"))) {
+    if (/*birth && */(f = fopen("/proc/net/route" , "r"))) {
 	while (fgets(line, 100, f)) {
 	    ifname = strtok(line , " \t");
 	    c = strtok(NULL , " \t");

mercurial