]> git.eshelyaron.com Git - emacs.git/commit
Change nsm-should-check to look at local subnets
authorRobert Pluim <rpluim@gmail.com>
Wed, 7 Aug 2019 12:07:07 +0000 (14:07 +0200)
committerRobert Pluim <rpluim@gmail.com>
Wed, 7 Aug 2019 12:07:07 +0000 (14:07 +0200)
commitbc1cf28da5532c6052eade7b5d19bb59e7e1f7bf
treefbfebc7b64482a7836d46662645836dfecf02b07
parent76662cc47d0dd1482442914d0b1f5011f0c86c5e
Change nsm-should-check to look at local subnets

* lisp/net/nsm.el (nsm-network-same-subnet): New function.  Checks
if an ip address is in the same subnet as another one.
(nsm-should-check): Use nsm-network-same-subnet to see if we're
connecting to a local subnet machine.  Remove checks for RFC1918 addresses.

* test/lisp/net/nsm-tests.el: New file.  Test nsm-should-check functionality.
lisp/net/nsm.el
test/lisp/net/nsm-tests.el [new file with mode: 0644]