Skip to content

Commit af68a78

Browse files
committed
freebsd
1 parent ceef739 commit af68a78

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tunshell-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ features = [
7272
"WebSocket",
7373
]
7474

75-
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "android")))'.dependencies]
75+
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "android"), not(target_os = "freebsd")))'.dependencies]
7676
remote-pty-common = { git = "https://github.com/TimeToogo/remote-pty" }
7777
remote-pty-master = { git = "https://github.com/TimeToogo/remote-pty" }
7878

tunshell-client/src/shell/client/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cfg_if::cfg_if! {
2525
}
2626
}
2727
cfg_if::cfg_if! {
28-
if #[cfg(all(unix, not(target_os = "ios"), not(target_os = "android")))] {
28+
if #[cfg(all(unix, not(target_os = "ios"), not(target_os = "android"), not(target_os = "freebsd")))] {
2929
mod remote_pty;
3030
use remote_pty::start_remote_pty_master;
3131
}
@@ -70,9 +70,9 @@ impl ShellClient {
7070
term: self.host_shell.term().unwrap_or("".to_owned()),
7171
color: self.host_shell.color().unwrap_or(false),
7272
size: WindowSize::from(self.host_shell.size().await?),
73-
#[cfg(all(unix, not(target_os = "ios"), not(target_os = "android")))]
73+
#[cfg(all(unix, not(target_os = "ios"), not(target_os = "android"), not(target_os = "freebsd")))]
7474
remote_pty_support: true,
75-
#[cfg(not(all(unix, not(target_os = "ios"), not(target_os = "android"))))]
75+
#[cfg(not(all(unix, not(target_os = "ios"), not(target_os = "android"), not(target_os = "freebsd"))))]
7676
remote_pty_support: false,
7777
// we invert the peer config because the remote will have the inverse view of the network
7878
network_peer_config: self.network_peer_config.invert(),
@@ -93,7 +93,7 @@ impl ShellClient {
9393

9494
let exit_code = if let ShellStartedPayload::RemotePty = response {
9595
cfg_if::cfg_if! {
96-
if #[cfg(not(all(unix, not(target_os = "ios"), not(target_os = "android"))))] {
96+
if #[cfg(not(all(unix, not(target_os = "ios"), not(target_os = "android"), not(target_os = "freebsd"))))] {
9797
return Err(Error::msg("shell server started remote pty when not supported on local"));
9898
} else {
9999
info!("starting remote pty master");

0 commit comments

Comments
 (0)