newinnovations / remote-edit-ni

Atom package to browse and edit remote files using SSH and FTP. This fork supports atom 1.41.x and adds some new features.
https://atom.io/packages/remote-edit-ni
MIT License
18 stars 2 forks source link

[fix] Host config comparison method #21

Closed urban-1 closed 6 years ago

urban-1 commented 6 years ago

Fixing #20: On re-connect, we are checking if we are already connected. This comparison was based solely on the remote hostname. As a result, connecting to the same host with a different username was impossible.

This commit/branch adds a host.equals() method which compares host configurations using all remote hostname, username and port.

Tested locally with a mock user