Looks fine too me, and far less code than original, which makes me think it wouldn't hurt to include it, despite the duplicated networking code not being optimal (it means one more place that will need fixing for proper IPV6 support).