Skip to content

Commit 677cd7e

Browse files
authored
Update v-change-sys-ip-nat (hestiacp#4591)
Bypass vsftpd "OOPS: invalid pasv_address (500)."
1 parent 3f99e48 commit 677cd7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-change-sys-ip-nat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if [ -n "$old" ] && [ -n "$FTP_SYSTEM" ]; then
9090
sed -i "/pasv_address/d" "$ftp_conf"
9191
fi
9292
if [ -n "$check_pasv" ] && [ -n "$nat_ip" ]; then
93-
sed -i "s/pasv_address=.*/pasv_address='$nat_ip'/g" "$ftp_conf"
93+
sed -i "s/pasv_address=.*/pasv_address=$nat_ip/g" "$ftp_conf"
9494
fi
9595
fi
9696
fi

0 commit comments

Comments
 (0)