Skip to content

Commit

Permalink
Add ip address to Hostname line
Browse files Browse the repository at this point in the history
So that connections using ip address use the ProxyJump
  • Loading branch information
Jesse Hills authored and ekini committed Jul 22, 2019
1 parent bcc63ed commit f6656bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type SSHEntry struct {

func (e SSHEntry) ConfigFormat() string {
var output = []string{
fmt.Sprintf("Host %s", e.Name),
fmt.Sprintf("Host %s %s", e.Name, e.Address),
}
if e.ProxyJump != "" {
output = append(output, fmt.Sprintf(" ProxyJump %s", e.ProxyJump))
Expand Down

0 comments on commit f6656bc

Please sign in to comment.