mirror of
https://github.com/jgoerzen/xbnet.git
synced 2025-02-19 16:53:49 -04:00
bugfix
This commit is contained in:
parent
870ab19b3d
commit
3e24c1bbd8
@ -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'
|
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
|
## UUCP
|
||||||
|
|
||||||
For UUCP, I recommend protocol `i` with the default window-size
|
For UUCP, I recommend protocol `i` with the default window-size
|
||||||
|
@ -120,12 +120,12 @@ impl XBTun {
|
|||||||
IpAddr::V6(_) =>
|
IpAddr::V6(_) =>
|
||||||
if self.disable_ipv6 {
|
if self.disable_ipv6 {
|
||||||
debug!("Dropping packet because --disable-ipv6 given");
|
debug!("Dropping packet because --disable-ipv6 given");
|
||||||
return Ok(());
|
continue;
|
||||||
},
|
},
|
||||||
IpAddr::V4(_) =>
|
IpAddr::V4(_) =>
|
||||||
if self.disable_ipv4 {
|
if self.disable_ipv4 {
|
||||||
debug!("Dropping packet because --disable-ipv4 given");
|
debug!("Dropping packet because --disable-ipv4 given");
|
||||||
return Ok(());
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -179,12 +179,12 @@ impl XBTun {
|
|||||||
IpAddr::V6(_) =>
|
IpAddr::V6(_) =>
|
||||||
if self.disable_ipv6 {
|
if self.disable_ipv6 {
|
||||||
debug!("Dropping packet because --disable-ipv6 given");
|
debug!("Dropping packet because --disable-ipv6 given");
|
||||||
return Ok(());
|
continue;
|
||||||
},
|
},
|
||||||
IpAddr::V4(_) =>
|
IpAddr::V4(_) =>
|
||||||
if self.disable_ipv4 {
|
if self.disable_ipv4 {
|
||||||
debug!("Dropping packet because --disable-ipv4 given");
|
debug!("Dropping packet because --disable-ipv4 given");
|
||||||
return Ok(());
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !self.broadcast_everything {
|
if !self.broadcast_everything {
|
||||||
|
Loading…
Reference in New Issue
Block a user