Skip to content

Commit 5847119

Browse files
committed
net/pasta: correct translation of inbound to -t "none"
1 parent 624ddc6 commit 5847119

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

net.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ static bool spawnPasta(nsjconf_t* nsjconf, int pid) {
191191
argv.push_back("-f");
192192
argv.push_back("-q");
193193

194-
if (!nsjconf->user_net.inbound) {
195-
argv.push_back("-t");
194+
argv.push_back("-t");
195+
if (nsjconf->user_net.inbound) {
196+
argv.push_back("all");
197+
} else {
196198
argv.push_back("none");
197199
}
198200

0 commit comments

Comments
 (0)