]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
add info about compression assumptions in dns.name.Name.to_wire()
authorBob Halley <halley@dnspython.org>
Sun, 10 May 2020 16:36:45 +0000 (09:36 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 10 May 2020 16:36:45 +0000 (09:36 -0700)
dns/name.py

index addfa9a83326a1d82c2d8deefd39f7f47ab7bf53..1d151c6d51452c0c57006682f4244ab1f7a5ec3a 100644 (file)
@@ -613,7 +613,10 @@ class Name(object):
         containing the wire name will be returned.
 
         *compress*, a ``dict``, is the compression table to use.  If
-        ``None`` (the default), names will not be compressed.
+        ``None`` (the default), names will not be compressed.  Note that
+        the compression code assumes that compression offset 0 is the
+        start of *file*, and thus compression will not be correct
+        if this is not the case.
 
         *origin* is a ``dns.name.Name`` or ``None``.  If the name is
         relative and origin is not ``None``, then *origin* will be appended