ref: f4cc790151fa00fa57327b2cf419f4b068fc4765
parent: 05702a2942dc74613683a1d338c90f29b58c9c7e
author: Alex Musolino <alex@musolino.id.au>
date: Sun Apr 19 12:04:47 EDT 2020
devip: replace "net" with "tcp" in dial strings regardless of host part
--- a/kern/devip.c
+++ b/kern/devip.c
@@ -817,9 +817,9 @@
port = lookupport(f[2]);
if(port <= 0)
error("no translation for port found");
+ if(strcmp(f[0], "net") == 0)
+ f[0] = "tcp";
if(strcmp(f[1], "*") == 0){
- if(strcmp(f[0], "net") == 0)
- f[0] = "tcp";
ns = smprint("/net/%s/clone %d", f[0], port);
} else {
if(parseip(ip, f[1]) != -1){