This should probably now be something like this:

`````
if (!connection.relaying && net_utils.is_rfc1918(connection.remote_ip)) return next();
if (connection.relaying && !(cfg.main.spf_check_outbound || cfg.main.public_ip)) return next();
`````