Kaynağa Gözat

be more relaxed on IPv4/IPv6 systems during server listen

Peter Bieringer 2 yıl önce
ebeveyn
işleme
e4842ef7df
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      radicale/server.py

+ 4 - 0
radicale/server.py

@@ -309,6 +309,10 @@ def serve(configuration: config.Configuration,
                             # macOS: IPv4 address for INET6 address family with
                             #        IPV6_V6ONLY set
                             e.errno == errno.EADDRNOTAVAIL or
+                            # Temporary failure in name resolution
+                            #  can happen if "hosts" is using eg. "localhost"
+                            #  and only resolvable to an IPv4 address
+                            e.errno == -3 or
                             # Address family not supported
                             e.errno == errno.EAFNOSUPPORT or
                             # Protocol not supported