Skip to content

Commit

Permalink
fix: remove is_private check for nat workaround (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso authored Jan 18, 2025
1 parent b71eb30 commit d28b1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion suppaftp/src/async_ftp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ where
let port = (u16::from(msb) << 8) | u16::from(lsb);
let addr = SocketAddr::new(ip.into(), port);
trace!("Passive address: {}", addr);
if self.nat_workaround && ip.is_private() {
if self.nat_workaround {
let mut remote = self
.reader
.get_ref()
Expand Down
2 changes: 1 addition & 1 deletion suppaftp/src/sync_ftp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ where
let port = (u16::from(msb) << 8) | u16::from(lsb);
let addr = SocketAddr::new(ip.into(), port);
trace!("Passive address: {}", addr);
if self.nat_workaround && ip.is_private() {
if self.nat_workaround {
let mut remote = self
.reader
.get_ref()
Expand Down

0 comments on commit d28b1bb

Please sign in to comment.