public boolean isLocal() {
			if (type.equals("local")) {		// UNIX socket
				return true;
			}
			if (address != null) {
				if (address.equals("127.0.0.1/32")) {	// IPv4 localhost
					return true;
				}
				if (address.equals("::1/128")) {		// IPv6 localhost
					return true;
				}
			}
			return false;
		}
Determine if the connection is coming either from UNIX socket or "localhost"
@return true if the connection is local in this sense
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/ServerConfig.java