net.Listen: refactor to support more network prefixes

Signed-off-by: Alejandro Mery <amery@geeks.cl>