Blob Blame History Raw
@@ -, +, @@ 
 libteredo/maintain.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
--- a/libteredo/maintain.c	
+++ a/libteredo/maintain.c	
@@ -262,6 +262,9 @@ void maintenance_thread (teredo_maintenance *m)
 		/* Resolve server IPv4 addresses */
 		while (server_ip == 0)
 		{
+			/* Reread resolv.conf, it could have changed */
+			res_init();
+
 			/* FIXME: mutex kept while resolving - very bad */
 			int val = getipv4byname (m->server, &server_ip);
 			gettime (&deadline);