This commit is contained in:
John Goerzen 2020-09-26 18:02:00 -05:00
parent 870ab19b3d
commit 3e24c1bbd8
2 changed files with 12 additions and 4 deletions

View File

@ -123,6 +123,14 @@ using a pty. In those instances, something like this may be in order:
socat TCP-LISTEN:10104 EXEC:'stdbuf -i0 -o0 -e0 xbnet /dev/ttyUSB4 pipe --dest=1234,pty,rawer'
```
You can send a file this way; for instance, on one end:
```
socet 'EXEC:sz -vv -b /bin/sh,pipes' EXEC:xbnet /dev/ttyUSB4 pipe --dest 1234,nofork,pipes'
```
And on the other, you use `rz` instead of `sz`.
## UUCP
For UUCP, I recommend protocol `i` with the default window-size

View File

@ -120,12 +120,12 @@ impl XBTun {
IpAddr::V6(_) =>
if self.disable_ipv6 {
debug!("Dropping packet because --disable-ipv6 given");
return Ok(());
continue;
},
IpAddr::V4(_) =>
if self.disable_ipv4 {
debug!("Dropping packet because --disable-ipv4 given");
return Ok(());
continue;
}
};
@ -179,12 +179,12 @@ impl XBTun {
IpAddr::V6(_) =>
if self.disable_ipv6 {
debug!("Dropping packet because --disable-ipv6 given");
return Ok(());
continue;
},
IpAddr::V4(_) =>
if self.disable_ipv4 {
debug!("Dropping packet because --disable-ipv4 given");
return Ok(());
continue;
}
}
if !self.broadcast_everything {