A loopback address can range from 127.0.0.0 to 127.255.255.255. This commit relaxes the loopback check in rpc_bind.py by checking whether an IP address (from all_interfaces()) starts with '127.' instead of strictly matching '127.0.0.1'.
Programs like VPNs might add an extra loopback address (e.g., 127.1.130.83), which failed under the previous state. These addresses will now pass with this update.
For context: I found this while running tests with the Mullvad daemon active. Mullvad adds a custom lo0 interface like inet 127.141.11.239 netmask 0xff000000 that failed with --nonloopback, which should not be the case since the address is a valid loopback IP.