Unified · Split
| @@ -817,9 +817,9 @@ cswrite(Chan *c, void *a, long n, vlong offset) · 816 unmodified lines | ||
| 817 | 817 | port = lookupport(f[2]); |
| 818 | 818 | if(port <= 0) |
| 819 | 819 | error("no translation for port found"); |
| 820 | + if(strcmp(f[0], "net") == 0) | |
| 821 | + f[0] = "tcp"; | |
| 820 | 822 | if(strcmp(f[1], "*") == 0){ |
| 821 | − if(strcmp(f[0], "net") == 0) | |
| 822 | − f[0] = "tcp"; | |
| 823 | 823 | ns = smprint("/net/%s/clone %d", f[0], port); |
| 824 | 824 | } else { |
| 825 | 825 | if(parseip(ip, f[1]) != -1){ |