lib/net_setup: flip condition (fix)