Skip to content

Commit

Permalink
Merge branch 'master' of github.com:banago/PHPloy
Browse files Browse the repository at this point in the history
  • Loading branch information
banago committed Mar 1, 2014
2 parents 9bdd454 + 8edf9f7 commit d5036b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion phploy
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,13 @@ class PHPloy
throw new Exception("Oh Snap: Could not login to {$server['host']} (Tried to login as {$server['user']}).\n");
}

ftp_pasv($connection, true);
$passive = true;
if (isset($server['passive']) and (bool) $server['passive'] == false)
{
$passive = false;
}

ftp_pasv($connection, $passive);

if (ftp_chdir($connection, $server['path'])) {
$this->connection = $connection;
Expand Down

0 comments on commit d5036b8

Please sign in to comment.