webapp: Fix ssh setup with nonstandard port, broken in last release.

This commit is contained in:
Joey Hess 2013-07-02 15:46:02 -04:00
parent c6077de72d
commit 1b395dcb76
3 changed files with 10 additions and 1 deletions

View file

@ -292,7 +292,7 @@ makeSsh rsync setup sshdata
makeSsh' :: Bool -> (Remote -> Handler ()) -> SshData -> SshData -> Maybe SshKeyPair -> Handler Html
makeSsh' rsync setup origsshdata sshdata keypair = do
sshSetup [sshhost, remoteCommand] "" $
sshSetup ["-p", show (sshPort origsshdata), sshhost, remoteCommand] "" $
makeSshRepo rsync setup sshdata
where
sshhost = genSshHost (sshHostName origsshdata) (sshUserName origsshdata)