]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix nsm-should-check for "google.com" failure
authorRobert Pluim <rpluim@gmail.com>
Tue, 12 Jan 2021 17:36:01 +0000 (18:36 +0100)
committerRobert Pluim <rpluim@gmail.com>
Tue, 12 Jan 2021 17:53:48 +0000 (18:53 +0100)
* lisp/net/nsm.el (nsm-should-check): Extract the mask from
'network-interface-list' rather than the broadcast
address (Bug#45798).

lisp/net/nsm.el

index 3f3e7133713ad4d2480900bb5b567d6b12dc0468..0ce65a35ead1eb197cc19241fbd92b1cc1505ca1 100644 (file)
@@ -239,7 +239,7 @@ otherwise."
         (mapc
          (lambda (info)
            (let ((local-ip (nth 1 info))
-                 (mask (nth 2 info)))
+                 (mask (nth 3 info)))
              (when
                  (nsm-network-same-subnet (substring local-ip 0 -1)
                                           (substring mask 0 -1)