• Robert Pluim's avatar
    Change nsm-should-check to look at local subnets · bc1cf28d
    Robert Pluim authored
    * 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.
    bc1cf28d
nsm-tests.el 2.49 KB